Skip --user if SOLANA_DOCKER_RUN_NOSETUID is set

This commit is contained in:
Michael Vines 2018-06-21 12:24:52 -07:00
parent 8fde70d4dc
commit 3eb1608403
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ ARGS+=(--env "CARGO_HOME=/solana/.cargo")
ARGS+=(--security-opt "seccomp=unconfined")
# Ensure files are created with the current host uid/gid
ARGS+=(--user "$(id -u):$(id -g)")
if [[ -z "$SOLANA_DOCKER_RUN_NOSETUID" ]]; then
ARGS+=(--user "$(id -u):$(id -g)")
fi
# Environment variables to propagate into the container
ARGS+=(