Closed prometheas closed 6 years ago
This may actually be because the docker
user hasn't got the permissions to read my private key file. Given that these restrictive permissions are enforced (and highly recommended) for security purposes, how do you guys deal with this issue? Are you simply setting your private keys to be readable by some specific group (or even all users)?
On second thought, maybe it's better use to use docker-compose
to achieve builds with ssh keys. Never mind.
Create a Rockerfile with the following entries:
Then, build with an attach:
Then, in the interactive build shell:
⚠️ Note that the entry for
id_rsa
is understood to be a directory.