Sorry to create a new thread even though it’s quite a popular issue in the forum. I’m using the Windows 10 insider build 15031. I tried to share the drive from the Docker’s setting. It does not work and return that firewall-related message. Then I opened the file explorer, typed “\\10.0.75.1” and error was returned after a while. It is the same even the Windows firewall is disabled. I used ‘net share’ on the command prompt and it did return the share folder, which is ‘d’ in my case.
I also tried to set the Docker virtual nic to’ Private’, restarted the docker, but it did not help the issue neither.
Docker version: 1.13.1
Any suggestion to continue the troubleshooting? Thanks.
Yes. it returns the message “C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: D: drive is not shared. Please share it in Docker for Windows Settings.”
On your tray, next to your clock, right-click on Docker, then click on Settings, there you’ll find the Shared Drives: just mark your drive and hit apply!
Yes. that’s what I did and the issue I outlined in the first post. It said “Firewall Detected”. Here is the log,
[23:54:24.204][ApiProxy ][Info ] proxy << POST /v1.26/containers/4941f51f61ffec57c4497991650d982869b4275734c378580968b7cce29a8e44/start
[23:54:25.285][ApiProxy ][Info ] proxy << POST /v1.26/containers/4941f51f61ffec57c4497991650d982869b4275734c378580968b7cce29a8e44/attach?stderr=1&stdin=1&stdout=1&stream=1
[23:54:25.676][SambaShare ][Error ] Unable to mount D drive: firewall is blocking
[23:54:25.679][SambaShare ][Info ] Removing share D
My bad, I overlooked that!
I know that it isn’t exactly what you’re looking for, but try this and see if it works: move your project to C:/Users, edit the project folder’s permissions and add Full control to Users, then on your terminal, run docker run -p your_port:container_port -v /c/users/your_project:/your_container_workdir image_name command, make sure you’ve followed the Example section of this documentation.
I’ve been beating my head on this for days and just managed to get it working yesterday, though I did not have the firewall issue itself, my initial problem mas because I couldn’t get to share my E: drive, and was also having issues with the proper format of the path to share a volume with the container, and it also didn’t work with composer even though I used the same parameters on the docker run command I wrote above.
I see. Yup. I did set the permission of the folder, tried ‘everyone’ and added full control. It still didn’t work. Also tried adding another share name, adding another user, nothing is related.
While digging around, I found the following status info is a bit strange. The ip4connectivity is set to ‘NoTraffic’, not quite understand the implication.
I found the followings in the log. Apparently initially the share was created successfully, but later something failed and docker concluded that it’s a firewall issue.
[20:42:31.989][NamedPipeServer][Info ] Mount(D, JYUNG-SURFACEPR\jyung:**********, Docker.Core.Settings)
[20:42:31.989][SambaShare ][Info ] Mount D
[20:42:32.074][Cmd ][Info ] Share name D
[20:42:32.074][Cmd ][Info ] Path D:
[20:42:32.074][Cmd ][Info ] Remark
[20:42:32.074][Cmd ][Info ] Maximum users No limit
[20:42:32.077][Cmd ][Info ] Users
[20:42:32.077][Cmd ][Info ] Caching Manual caching of documents
[20:42:32.078][Cmd ][Info ] Permission Everyone, FULL
[20:42:32.078][Cmd ][Info ]
[20:42:32.078][Cmd ][Info ] The command completed successfully.
[20:42:32.078][Cmd ][Info ]
[20:42:32.087][SambaShare ][Info ] “D” is shared
[20:42:32.096][SambaShare ][Info ] Username: jyung
[20:42:32.096][SambaShare ][Info ] Host IP: 10.0.75.1
[20:42:32.096][SambaShare ][Info ] Cifs options: noperm,iocharset=utf8,nobrl,mfsymlinks,vers=3.02,domain=JYUNG-SURFACEPR
…
…
…
[20:42:32.748][ApiProxy ][Info ] Upgrading to raw stream
[20:42:32.750][ApiProxy ][Info ] proxy >> GET /v1.26/events?filters=%7B%22container%22%3A%7B%22b70848264c9c85063e38a6ef4067f674541fca9138acf863c01be2f3009e6837%22%3Atrue%7D%2C%22type%22%3A%7B%22container%22%3Atrue%7D%7D
[20:42:32.750][ApiProxy ][Info ] Dial Hyper-V socket f063fc15-ba59-4a54-8532-44f5a8bf4506:23a432c2-537a-4291-bcb5-d62504644739
[20:42:32.753][ApiProxy ][Info ] Successfully dialed Hyper-V socket f063fc15-ba59-4a54-8532-44f5a8bf4506:23a432c2-537a-4291-bcb5-d62504644739
[20:42:32.758][ApiProxy ][Info ] proxy >> POST /v1.26/containers/b70848264c9c85063e38a6ef4067f674541fca9138acf863c01be2f3009e6837/start [start]
[20:42:32.758][ApiProxy ][Info ] proxy >> POST /v1.26/containers/b70848264c9c85063e38a6ef4067f674541fca9138acf863c01be2f3009e6837/start
[20:42:32.758][ApiProxy ][Info ] Dial Hyper-V socket f063fc15-ba59-4a54-8532-44f5a8bf4506:23a432c2-537a-4291-bcb5-d62504644739
[20:42:32.759][ApiProxy ][Info ] Successfully dialed Hyper-V socket f063fc15-ba59-4a54-8532-44f5a8bf4506:23a432c2-537a-4291-bcb5-d62504644739
[20:42:33.188][ApiProxy ][Info ] proxy << POST /v1.26/containers/b70848264c9c85063e38a6ef4067f674541fca9138acf863c01be2f3009e6837/start
[20:42:34.271][ApiProxy ][Info ] proxy << POST /v1.26/containers/b70848264c9c85063e38a6ef4067f674541fca9138acf863c01be2f3009e6837/attach?stderr=1&stdin=1&stdout=1&stream=1
[20:42:34.760][ApiProxy ][Info ] Cancel connection…
[20:42:34.764][ApiProxy ][Info ] proxy << GET /v1.26/events?filters=%7B%22container%22%3A%7B%22b70848264c9c85063e38a6ef4067f674541fca9138acf863c01be2f3009e6837%22%3Atrue%7D%2C%22type%22%3A%7B%22container%22%3Atrue%7D%7D
[20:42:34.778][SambaShare ][Error ] Unable to mount D drive: firewall is blocking
[20:42:34.778][SambaShare ][Info ] Removing share D
[20:42:34.847][NamedPipeClient][Info ] Received response for Mount
[20:42:34.846][NamedPipeServer][Info ] Mount done in 00:00:02.8575207.
I also cannot add my shared drive in some instances. I enter the Docker application in the bottom right of Windows, click Settings > Shared Drives, select my chosen drive “C:”, and then when prompted for my password I correctly enter my password.
My username is also correct.
It just bloody resets to unticked.
Sometimes it works, but it requires resetting after every time I log out and back in.
Docker version 18.09.0, build 4d60db4
Windows 10 Pro - 1803 - Build 17134.472
I had the same issue. Resolved by creating a new user without microsoft account and making it admin. Then while sharing the drives provided credentials of newly created user.
I was having the same issue. I had the following line in my logs:
Unable to mount C drive: 10.0.75.1 (10.0.75.1:445) open
Along with other lines related to IpV6, SambaShare and IPVS
Long story short:
The issue is related to how poorly network folder sharing is implemented in Windows. And Docker is using the folder sharing mechanism, so that might be the reason why the issue is coming up for so many people and there doesn’t seem to be a fix.
What fixed it for me (I am not sure if it’s a complete recipe, or that all of the steps are needer, but that what seemed to make it work for me):
1 - Enabling IpV6 in all network devices. It was disabled
2 - Enabling SMB 2/3 (I’ve also enabled SMB 1, but seems like Docker is using SMB 3) - it’s a network folder sharing protocols which were disabled in my system by default
3 - Enabling network sharing and disabling password protection in “Network and Internet settings” -> “Sharing options”
4 - I’ve uninstalled VmWare Player, which also removed VmWare virtual network devices.
5 - *I am not sure if it’s necessary, but at the moment it is working with a separate user without Micorosoft Account, as other advices mentioned - not sure if it’s a must, but I am not going to touch it while it works