Skip to main content
April 20, 2023
Question

Forward 1Password SSH agent to docker container (MacOS)

  • April 20, 2023
  • 1 reply
  • 862 views

Hi. I've been trying out the solution propsoed here : https://1password.community/discussion/130769/how-to-forward-1password-ssh-agent-to-docker-container-macos (closed) by @floris_1P but it doesn't work. It displays The agent has no identities.. Any idea ?


1Password Version: 8.10.4
Extension Version: Not Provided
OS Version: 13.3.1
Browser:_ Not Provided

1 reply

floris_1P
1Password Employee
1Password Employee
May 26, 2023

@coolgoose That's because Docker for Mac is managed by launchd and will inherit the launchd environment rather than the shell environment.

To fix that, you can either launch Docker for Mac from the shell with SSH_AUTH_SOCK set using the open -a /Applications/Docker.app/ command, or for more persistent use, have launchd configure the socket by following the steps described here.