Since the new Docker for Windows update (Version 18.03.0-ce-win59 (16762), on Win10) none of my projects start up, with mount-related errors about portainer and traefik like these:
ERROR: for eorgdockerlocalhost_portainer_1 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: for traefik Cannot create container for service traefik: b'Mount denied:\nThe source path "\var\run\docker.sock:/var/run/docker.sock"\nis not a valid Windows path'
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.
Same problem after Docker for windows update to 16762.
The best solution for avoid to use windows :
Install WSL (Windows Subsytem linux) and install docker engine. After, change DOCKER_HOST var in your bashrc => export DOCKER_HOST=tcp://127.0.0.1:2375.
Use WSL for your common docker-compose commands...
Downgraded to Docker for Windows Version 17.06.1-ce-win24 (13025) - all works perfectly.
@csandanov please let us know here once it is safe again for users to upgrade; thanks.
TBH I couldn't even launch docker for windows :) I try to launch it via parallels on mac and even purchased a newer Parallels version + Pro license but no luck https://github.com/docker/for-win/issues/904#issuecomment-351642219. Although somethings could've changed in the last 3 months
Perhaps an investment in a simple Windows laptop is an option. There are lots of Windows users relying on D4D for local development.
Finally, i swhitched on Archlinux with i3wm... My old setup, for local development and keep windows on dual booting for other business devs... All work fine on Linux hosted D4D
https://github.com/docker/for-win/issues/1889#issuecomment-376874047 fixed it for me.
I downgraded.
@mfrieling linked a solution that worked for me
Restated here:
Just add environment variable COMPOSE_CONVERT_WINDOWS_PATHS=1
git-bash: export COMPOSE_CONVERT_WINDOWS_PATHS=1
powershell: $Env:COMPOSE_CONVERT_WINDOWS_PATHS=1
Anyone played with WSL2 and wodby4drupal ?
I'm stucked, my websites or even portainer or pma are not accessible from my host(windows 10 pro)
The only thing I can see from my linux, is the admin page of traefik 2 on localhost port 8080.
I don't find way to use custom domain names for each website.
Most helpful comment
https://github.com/docker/for-win/issues/1889#issuecomment-376874047 fixed it for me.