Using SSH keys inside docker container - Stack Overflow
https://stackoverflow.com/questions/18136389/using-ssh-keys-inside-docker-container
Aug 09, 2013 · It's a harder problem if you need to use SSH at build time. For example if you're using git clone, or in my case pip and npm to download from a private repository.. The solution I found is to add your keys using the --build-arg flag. Then you can use the new experimental --squash command (added 1.13) to merge the layers so that the keys are no longer available …
DA: 9 PA: 100 MOZ Rank: 46