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
{{ message }}
Repository navigation
[Bug]: --mount type=bind rejects a Unix socket source that -v accepts #2531
If possible, I've reproduced the issue using the 'main' branch of this project (reproduced on the 1.7.1 release)
Steps to reproduce
SOCK=/path/to/docker.sock # any host Unix socket
container run --rm -v "$SOCK":/var/run/docker.sock docker:cli docker version # works
container run --rm --mount type=bind,source="$SOCK",target=/var/run/docker.sock docker:cli docker version
Problem description
The --mount form fails with Error: path '<socket>' is not a directory; the -v form relays the socket and works. Both should accept a socket source, since --mount type=bind is what Docker-compatible tooling generates.
Activity