Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocker firewall issues #128
Comments
|
To do: add summary of this issue to README as a known install issue for Windows |
|
Added in README in ec837fd, referring to this issue. Closing. |
Certain Windows installations experience problems with sharing drives to Docker. The information in this email from Auke Folkerts at University of Amsterdam needs to be incorporated in install instructions:
During our last weeks' meeting on Docker on Windows, I promised a followup with brief explanation of what went wrong and how to fix your computers at home too.
Essentially, the problem is caused by the way Docker handles Shared Folders on Windows. This is done with "Windows File & Printer sharing", via an internal network between windows and the docker containers. (You may know File and Printer sharing as "CIFS" or "Samba")
By default, the windows firewall blocks all network traffic to File and Printer sharing services. Essentially preventing regular Windows installations from accidentally sharing their files (historically, a lot of exploits and vulnerabilities on Windows were caused by this)
Even though Docker Shared Folders is done completely internally to the Windows computer, the firewall still blocks this. This is inconvenient, but the following commands (to be executed in a command prompt that is run with administrator privileges) fixes this.
(To get a command prompt as admnistatror, either log in as administrator and execute
cmd, or as a regular user executerunas /user:administrator cmd)These commands open up File and Printer sharing to the internal network (10.x.x.x) only. There should be no risk of doing this on your home computer.
For more details, see https://docs.docker.com/docker-for-windows/#shared-drives