This instruction is for Windows 10 Pro only. It is a bit tricky to install docker
for Windows 10 Home, which does not support virtualization (Hyper-V). For users with Windows 10 Home, read through this to install docker toolbox
instead. You may need to configure environment variables (DOCKER_TLS_VERIFY
and DOCKER_HOST
) and docker communication port (2376) correctly with TSL and copy encryption keys into Ubuntu. Here is an example of ~/.bashrc
and encryption keys inside Ubuntu.
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_TLS_VERIFY=1
$ ls ~/.docker/
ca-key.pem ca.pem cert.pem config.json key.pem
-
Sign up for a Microsoft account.
-
Reboot your computer.
-
Disable/turn off any VPN clients (Cisco VPN, ...) and antivirus softwares (AVG, AVAST, Kaspersky, ...) on your system. It blocks any IPv6 network traffic from
apt
in Ubuntu. You can re-enable antivirus softwares later after installation. -
Sign up for docker hub.
-
Press a Window button and type
ubuntu
. A BASH terminal will pop up. Press Enter to install Ubuntu on your Windows system. -
Install basic packages for developers.
$ sudo apt-get update
$ sudo apt-get install build-essential python python3 git wget default-jre
-
Follow this instruction to install docker inside Ubuntu. If you see any
Connection refused
errors duringapt
installation then disable VPN and antivirus softwares. -
Remove
~/.bash_profile
which was created during previous step. Run the following command line.
$ echo "export DOCKER_HOST=localhost:2375" >> ~/.bash_rc
-
Close BASH terminal and re-open it.
-
Check if docker works by running
hello-world
.
$ docker run hello-world
- Proceed to Local system with
docker
.