Skip --user if SOLANA_DOCKER_RUN_NOSETUID is set
This commit is contained in:
parent
8fde70d4dc
commit
3eb1608403
|
@ -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+=(
|
||||
|
|
Loading…
Reference in New Issue