Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created January 12, 2017 22:05
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save patmaddox/8342f4df52ff09f5780f87909544aa8b to your computer and use it in GitHub Desktop.
Save patmaddox/8342f4df52ff09f5780f87909544aa8b to your computer and use it in GitHub Desktop.
Using personal SSH keys on docker container (OS X)
volumes:
- ~/.ssh:/root/.ssh-local:ro
RUN mkdir ~/.ssh
RUN echo 'IdentityFile ~/.ssh-local/id_rsa' > ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment