From 3eb1608403211c4d6454169223c139ab4ad43d07 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 21 Jun 2018 12:24:52 -0700 Subject: [PATCH] Skip --user if SOLANA_DOCKER_RUN_NOSETUID is set --- ci/docker-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/docker-run.sh b/ci/docker-run.sh index 70e4b0137e..ab2011d95e 100755 --- a/ci/docker-run.sh +++ b/ci/docker-run.sh @@ -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+=(