Skip to content

Docker for Windows volume mounts and docker.sock #1110

@johnrom

Description

@johnrom

Mounting /var/run/docker.sock is no longer working in stable Docker for Windows with the latest update. There is an issue here: docker/for-win#1829

I'm not sure whether the issue is that docker.sock file is no longer a reliable source for DFW, and if that is the case then the issue will have to be resolved here. However, if it's a bug and it should still be able to mount docker.sock on the Docker for Windows side of things, this bug should resolve itself in a future update.

An example error is here:

ERROR: for front  Cannot create container for service front: b'Mount denied:\nThe source path "\\\\var\\\\run\\\\docker.sock:/tmp/docker.sock"\nis not a valid Windows path'

Example docker-compose.yml:

front:
  restart: always
  image: jwilder/nginx-proxy
  volumes:
    - /var/run/docker.sock:/tmp/docker.sock
  ports:
    - "80:80"
    - "443:443"

Docker Version:
18.03.0-ce-win59

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions