wodby / docker4drupal

Docker-based Drupal stack
https://wodby.com/docker4drupal
MIT License
1.24k stars 535 forks source link

portainer and traefik problems after update of Docker for Windows #262

Open Vacilando opened 6 years ago

Vacilando commented 6 years ago

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.

Cybercraft commented 6 years ago

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

Vacilando commented 6 years ago

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.

csandanov commented 6 years ago

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

Vacilando commented 6 years ago

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

Cybercraft commented 6 years ago

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

mfrieling commented 6 years ago

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

andydempster commented 6 years ago

I downgraded.

nerfchicken commented 6 years ago

@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

heyyoyo commented 4 years ago

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.