Yes, Docker runs on Windows like Bash runs on Windows. So you can actually try our guides for Docker intended for Mac or GNU/Linux PC. Here is How to Run Docker on Windows 10. It is possible to run Docker on Windows with Linux sub-system, bash but you better use free GNU/Linux for security reasons – neither Docker is a Free Software nor Windows is a Free Software. Microsoft Windows possibly try to restrict applications according to their need. You may end up doing too many works. Also, normally peoples use GNU/Linux server; it is worthless to waste time behind odd way instead of just having a dual boot.
How to Run Docker on Windows 10
There are different guides on web around the installation steps. That is because, for different time frame different ways discovered after Microsoft Windows did some changes to make Docker in bash way more Linux like.
Exactly like Linux, you need to run few commands from Windows Bash to install Docker from command line :
---
1 2 3 4 5 6 7 8 9 10 | sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - # Verify sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" Now we're ready to install Docker Community Edition sudo apt-get update sudo apt-get install docker-ce sudo usermod -aG docker $USER |
Running :
1 | docker version |
will return what exactly happened. Next step is by testing running :
1 | sudo docker run hello-world |
Failing!
If that above command returns some odd typical error, you are unlucky. This is typical error :
1 2 | docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'. |
You can not really force to try more than using sudo
. You can check whether there is Go:
1 | go version |
You can run this command to leave the daemon running in the background, and with the Docker ready you can test that it is accepting commands :
1 | sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock & |
You can try :
1 | docker run -d dockerswarm/swarm:master join --advertise=192.168.1.105:2375 |
Finally try :
1 | dockerd -D |
Try to install these packages :
1 2 3 | sudo aptitude install cgroupfs-mount apt-get install aufs-tools apt-get install cgroup-lite |
If both Windows installer of Docker and command line way ails like below screenshot, it is very difficult to actually get Docker working (it does not worth the effort) :
Tagged With run docker on windows 10 , run docker on windows , running docker on windows 10 , how to run docker on windows 10 , how to run docker on Windows , how to run docker windows 10 , running docker on windows , docker run bash , docker on windows 10 , how to run docker