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]: -v with a symlink to a Unix socket fails (errno 95) #2553
If possible, I've reproduced the issue using the 'main' branch of this project (1.7.1; main has the same check)
Steps to reproduce
# /var/run/docker.sock is a symlink on Macs with Docker Desktop or OrbStack
container run --rm -v /var/run/docker.sock:/var/run/docker.sock alpine ls -l /var/run/docker.sock
Problem description
The container fails to start with mount failed with errno 95: failed initial mount source=/run/virtiofs/<id>/docker.sock .... The socket's real path works.
Filesystem.isSocket() in RuntimeService uses File.info, which calls lstat, so a symlink to a socket is shared over virtiofs instead of relayed. The --mount check in #2541 has the same gap; I can fix both by following the symlink.
Activity
Accept a symlink to a socket as a bind mount source