-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker For Windows 18.03 stable: access denied for mounting /var/run/sock #1889
Comments
run |
the trick proposed by @sv1slim did the job for me - started my project via |
@sv1slim Thanks for your answer. Actually i reverted to the previous version to be able to work ; ) Do you know why it change with the last Docker Version For Windows ? (as all was working great just before the update) I should add that for my setup i run commands from bash script (via Git shell or Bash Cmder) so our starting scripts work on windows/linux/mac for all developpers. In those scripts i set Exemple: file
But before reporting this issue, for sure i tested directly docker-compose from a classic windows cmd shell and got the denied access error too, so it doesn't seems related to use bash shell on Windows or Thanks. |
@Yivan I don't think this is supposed to be in the Docker Documentation as this is your environment configuration, For Linux environment add |
@sv1slim @lidio601 Thanks for you return, i just try with It is documented in fact: But as i was only looking in the docker for windows release notes (https://docs.docker.com/docker-for-windows/release-notes/) it isn't documented. To the docker for win staff: i think when there is breaking changes coming from docker/compose/machine it should be mentionned in the stable release note of docker for win too. Thanks. |
This issue seems to be fixed. Closing. @sv1slim thanks for the help |
How is this fixed? I am confused because an up-to-date stable-channel docker still has this problem. In some edge cases (e.g., PyCharm remote containers using docker compose), it is entirely unclear how to fix this. |
I am still getting mount errors after running this update on the environment variable. |
Using the ENV variable will not work in the Git Bash. You have to use the windows CMD or Powershell for the ENV to actually work. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Hello,
We just updated Docker for Windows to last 18.03 stable (stable channel and no experimental feature). All was working great on the previous version.
Starting a container making a bind mount with /var/run/docker.sock (like portainer, nginx-proxy, ...) bring the following error:
ERROR: for portainer Cannot create container for service portainer : b'Mount denied:\nThe source path "\var\run\docker.sock:/var/run/docker.sock"\nis not a valid Windows path' ERROR: Encountered errors while bringing up the project.
I don't know if portainer/nginx-proxy/etc. need to be updated or this is docker wich need to be fixed.
For reference issue has been opened on portainer too: portainer/portainer#1775
Stackoverflow here: https://stackoverflow.com/questions/49507912/docker-jwilder-nginx-proxy-container-create-issue
Steps to reproduce the issue:
A simple compose file like:
version: "3.5"
Technical details:
Target Docker version (the host/cluster you manage): Docker for Windows to last 18.03 stable (stable channel and no experimental feature)
Platform (windows/linux): Windows 10 Profesionnal up-to-date
Target Swarm version (if applicable): not a swarm node
Try with several cli, same problem.
Thanks
The text was updated successfully, but these errors were encountered: