Using the correct identity when SSH forwarding in Docker
Back in October, I wrote a post explaining how to do SSH forwarding with
docker build
. In November, I wrote about how to use multiple SSH identities with git. Unfortunately, these don’t always mix: using SSH in the docker build uses
the first SSH identity held by ssh-agent
, which might not be the one you wanted. Here’s how I got around this
problem.