You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker-compose config reformats /var/run/docker.sock as \var\run\docker.sock in the source field of the long-form volume declaration syntax. On machines running Docker For Windows with linux containers enabled, this impacts the ability to use docker-compose config to merge compose files for deploying stacks that require a bind mount to the docker daemon socket.
> docker service ps traefik_traefik --no-trunc
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
idj2ik8jzkxtrhhajyw8ovj1p traefik_traefik.hxhznlefwub35xdmjoqha1x1v traefik:latest@sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f linuxkit-00155d555a01 Ready Rejected 3 seconds ago "invalid mount config for type "bind": bind source path does not exist"
zrk3qwed7e4ag4zkr11k2hmy0 \_ traefik_traefik.hxhznlefwub35xdmjoqha1x1v traefik:latest@sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f linuxkit-00155d555a01 Shutdown Rejected about a minute ago "invalid mount config for type "bind": bind source path does not exist"
zooqyww4eprosbr77rt9ixpzl \_ traefik_traefik.hxhznlefwub35xdmjoqha1x1v traefik:latest@sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f linuxkit-00155d555a01 Shutdown Rejected 3 minutes ago "invalid mount config for type "bind": bind source path does not exist"
zq9ort5zh0vc2le7dfnupmuc0 \_ traefik_traefik.hxhznlefwub35xdmjoqha1x1v traefik:latest@sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f linuxkit-00155d555a01 Shutdown Rejected 3 minutes ago "invalid mount config for type "bind": bind source path does not exist"
zr4sfachvinnfhkbaaqffof8t \_ traefik_traefik.hxhznlefwub35xdmjoqha1x1v traefik:latest@sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f linuxkit-00155d555a01 Shutdown Rejected 3 minutes ago "invalid mount config for type "bind": bind source path does not exist"
zqaj5vl7nk05l52092zpbhrxy \_ traefik_traefik.hxhznlefwub35xdmjoqha1x1v traefik:latest@sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f linuxkit-00155d555a01 Shutdown Rejected 5 minutes ago "invalid mount config for type "bind": bind source path does not exist"
PS C:\source> docker version
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:05:22 2017
OS/Arch: windows/amd64
Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:12:29 2017
OS/Arch: linux/amd64
Experimental: true
Docker-Compose Version
PS C:\source> docker-compose version
docker-compose version 1.19.0, build 9e633ef3
docker-py version: 2.7.0
CPython version: 2.7.14
OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017
Observations
Source field of volume long-form syntax is being reformatted to use the windows path separator \ instead of the linux path separator / specified in the compose file.
Short-form volume syntax is also impacted with the same behavior.
Issue
docker-compose config reformats
/var/run/docker.sockas\var\run\docker.sockin the source field of the long-form volume declaration syntax. On machines running Docker For Windows with linux containers enabled, this impacts the ability to usedocker-compose configto merge compose files for deploying stacks that require a bind mount to the docker daemon socket.Steps to Reproduce ( Long-form Syntax )
stack.base.yml
stack.env.yml
execute the following commands ( Long-form Syntax )
Expected Output ( Long-form Syntax )
deploy.stack.yml
expected output of commands:
An instance of traefik should be running on every manager instance of the swarm.
Actual Output: ( Long-form Syntax )
deploy.stack.yml
Actual output from commands:
Steps to Reproduce ( Short-form Syntax )
stack.base.yml
stack.env.yml
execute the following commands:
Expected Output: ( Short-form Syntax )
deploy.stack.yml
Expected output from commands
An instance of traefik should be running on each manger node.
Actual Output ( Short-form Syntax )
deploy.stack.yml
Actual ouptut from commands:
Docker Version
Docker-Compose Version
Observations
\instead of the linux path separator/specified in the compose file.