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 :
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 -
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
will return what exactly happened. Next step is by testing running :
sudo docker run hello-world
If that above command returns some odd typical error, you are unlucky. This is typical error :
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:
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 :
sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
You can try :
docker run -d dockerswarm/swarm:master join --advertise=192.168.1.105:2375
Finally try :
Try to install these packages :
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) :
Follow the Author of this article :