-
Notifications
You must be signed in to change notification settings - Fork 28
Run As User: docker run
Michael Kenney edited this page Mar 17, 2018
·
6 revisions
A simple docker run
solution for accessing private repositories via public key authentication that works for most use-cases.
$ docker run --rm -it \
-v $(pwd):/src:rw \
-v $HOME/.ssh:/home/dev/.ssh:ro \
-v $HOME/.ssh:/root/.ssh:ro \
mkenney/npm npm install
About the run-as-user
script
Public key access to private repositories
Specify UID
and GID
values
Override the run-as-user
script entirely