Repository Information
- Author
- Peter Polidoro
- License
Install Docker
Docker Toolbox is for older Windows systems. Docker Desktop for Windows is a newer application, however it uses Hyper-V, which does not allow container device access, so Docker Toolbox will be used instead.
Check Virtualization Enabled
Launch a command prompt or Windows PowerShell window.
-
Enter the command given below:
systeminfo.exe -
Wait few seconds (It takes a few seconds to gather information about your system but then gives you a result)
Look under Hyper-V Requirements.
-
See that Virtualization Enabled In Firmware reads Yes or that 'A hypervisor has been detected'.
-
If Virtualization has not been enabled, restart the computer and enable virtualization in BIOS or UEFI.
Uninstall Docker Desktop if Necessary
- Go to Settings > Apps on your Windows 10 machine.
- Under Apps & Features, find Docker for Windows.
- Go to Docker for Windows > Uninstall.
Uninstall VirtualBox if Necessary
- Go to Settings > Apps on your Windows 10 machine.
- Under Apps & Features, find VirtualBox
- Go to VirtualBox > Uninstall.
Disable Hyper-V if Necessary
Open an elevated PowerShell Command Prompt window.
-
At the command prompt, run the following command:
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor Restart computer to take effect.
Check to Make Sure Hyper-V is Disabled
- In Control Panel, select Programs and Features.
- Select Turn Windows features on or off.
- Expand Hyper-V, expand Hyper-V Platform, and then make sure Hyper-V Hypervisor check box is cleared.
Install VirtualBox
-
Download latest VirtualBox and Extension Pack
Install VirtualBox with all features.
Install Extension Pack
Install Docker Toolbox
- To download the latest version of Docker Toolbox, go to Toolbox Releases and download the latest .exe file.
- Install Docker Toolbox by double-clicking the installer.
- Uncheck VirtualBox and proceed
- Uncheck “View Shortcuts in File Explorer” and press Finish.
Verify Docker Toolbox Installation
- On your Desktop, find the Docker QuickStart Terminal icon.
- Click the Docker QuickStart icon to launch a pre-configured Docker Toolbox terminal.
- Type the docker run hello-world command and press RETURN.
Setup VirtualBox Machine
-
Stop the boot2docker vm:
docker-machine stop default Open VirtualBox manager and change settings on default
Increase display virtual memory to 16 MB
Use VMSVGA graphics controller
Enable USB 2.0 controller
-
Start the boot2docker vm:
docker-machine start default
Start a Priviledged Docker Container
Since the USB devices are connected to the boot2docker VM, the commands need to be run from that machine. Open up a terminal with the VM and run the Docker run command:
docker-machine ssh
docker run -it --privileged -v /dev:/dev ubuntu bash