I'd like to use the SSH agent feature of 1Password in combination with my DDEV projects that run with colima as its docker provider. That means that the DDEV web container is able to use the SSH keys stored inside 1Password.
This is possible by the following steps:
v2.23.0
)colima start --ssh-agent
(currently running colima v0.6.6
) This has to be done only once. It sets forwardAgent: true
in the colima configuration. After that you can simply use colima start
like before..ddev
directory with the following contentservices:
web:
volumes:
- type: bind
source: /run/host-services/ssh-auth.sock
target: /run/host-services/ssh-auth.sock
environment:
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock