docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

portainer and traefik problems after update of Docker for Windows

Open Vacilando opened this issue 7 years ago • 9 comments

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.

Vacilando avatar Mar 27 '18 21:03 Vacilando

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...

Cybercraft avatar Mar 28 '18 05:03 Cybercraft

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.

Vacilando avatar Mar 28 '18 21:03 Vacilando

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

csandanov avatar Mar 29 '18 04:03 csandanov

Perhaps an investment in a simple Windows laptop is an option. There are lots of Windows users relying on D4D for local development.

Vacilando avatar Mar 29 '18 06:03 Vacilando

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

Cybercraft avatar Mar 31 '18 13:03 Cybercraft

https://github.com/docker/for-win/issues/1889#issuecomment-376874047 fixed it for me.

mfrieling avatar May 05 '18 23:05 mfrieling

I downgraded.

andydempster avatar May 18 '18 13:05 andydempster

@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

nerfchicken avatar May 22 '18 18:05 nerfchicken

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.

heyyoyo avatar Aug 24 '20 15:08 heyyoyo