Open outsinre opened 9 months ago
After some search, found a similar issue: https://github.com/docker/for-mac/issues/6541 (Docker version 4.13.0) with a workaround to bypass this bug: start Docker Desktop (open -a Docker
) from terminal instead of from launchpad. However, this seems to have performance issue. Docker engine does not respond to commands instantly.
Using this way, only root
user can access to the forwarded agent. For non-root user, we have to update the permission as follows. See https://github.com/docker/for-mac/issues/4242 and https://github.com/docker/for-mac/issues/5303.
~ $ ll /run/host-services/ssh-auth.sock
srwxr-xr-x 1 root root 0 Feb 28 14:39 /run/host-services/ssh-auth.sock
~ $ sudo chmod a+w /run/host-services/ssh-auth.sock
Alternatively, setting the "file sharing" from "VirtioFS" to "gRPC FUSE". See https://stackoverflow.com/q/76343112.
I had the same issue and open -a Docker
does the trick for root user. Would it make sense to start ssh-agent only if SSH_AUTH_SOCK is not already set to avoid this issue ?
Docker desktop version: Docker Desktop 4.35.1 (173168)
Description
SSH agent forwarding described at https://docs.docker.com/desktop/networking/#ssh-agent-forwarding does not work any longer after recent Docker Desktop upgrade and macOS upgrade. It worked a few months ago.
Reproduce
Start Docker Desktop.
SSH agent on host.
Launch a new container.
SSH agent in the container. No SSH keys found!
Expected behavior
SSH agent in the container should see the SSH keys in the forwarded SSH agent.
docker version
docker info
Diagnostics ID
FD6CD52B-6D96-4731-9597-7A67E1E7F302/20240228141331
Additional Info
No response