Using ssh-agent with docker on macOS

后端 未结 8 2377
不思量自难忘°
不思量自难忘° 2021-02-02 10:18

I would like to use ssh-agent to forward my keys into the docker image and pull from a private github repo.

I am using a slightly modified version of https://github.com/

8条回答
  •  感动是毒
    2021-02-02 10:52

    By default, boot2docker shares only files under /Users. SSH_AUTH_SOCK is probably under /tmp so the -v mounts the agent of the VM, not the one from your mac.

    If you setup your VirtualBox to share /tmp, it should be working.

提交回复
热议问题