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
After some search, found a similar issue: #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 #4242 and #5303.
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 ?
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.
~ $ ssh-add -l 384 SHA256:a2TyZj/tyhwUrs6XYhg//+Zwnpvwp9yttted4OgmWtg ... 4096 SHA256:x2gO9GTWyTkJLudIwcFwHXYez0BFktfSc9FZ/jGqPU ...
Launch a new container.
SSH agent in the container. No SSH keys found!
root@c7783e0b7cd5:/# ssh-add -l The agent has no identities.
Expected behavior
SSH agent in the container should see the SSH keys in the forwarded SSH agent.
docker version
Client: Cloud integration: v1.0.35+desktop.10 Version: 25.0.3 API version: 1.44 Go version: go1.21.6 Git commit: 4debf41 Built: Tue Feb 6 21:13:26 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.27.2 (137060) Engine: Version: 25.0.3 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: f417435 Built: Tue Feb 6 21:14:22 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
FD6CD52B-6D96-4731-9597-7A67E1E7F302/20240228141331
Additional Info
No response
The text was updated successfully, but these errors were encountered: