Docker4drupal: portainer and traefik problems after update of Docker for Windows

Created on 27 Mar 2018  路  9Comments  路  Source: wodby/docker4drupal

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.

windows

Most helpful comment

All 9 comments

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dcre picture dcre  路  6Comments

AminSarafraz picture AminSarafraz  路  4Comments

pulasthibandara picture pulasthibandara  路  6Comments

webdobe picture webdobe  路  5Comments

quietone1 picture quietone1  路  10Comments