SSH Agent Forwarding
SSH agent forwarding can be started using the following:
docker run -it --rm \ -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock \ -e SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock \ alpineOr with Docker Compose:
services: web: image: alpine 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