Skip to content
Michael Kenney edited this page Mar 17, 2018 · 4 revisions

A simple docker run solution for specifying the UID and GID of the process. This may not work as expected in Docker for Mac.

$ docker run --rm -it \
    -v $(pwd):/src:rw \
    -e "PUID=1001" \
    -e "PGID=1001" \
    mkenney/npm:node-8-alpine 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

Clone this wiki locally