Skip to content

Commit

Permalink
run_docker user (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo authored Dec 10, 2021
1 parent 5e258b0 commit 836dda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker image inspect "$BUILD_IMAGE" &> /dev/null || {
}

if [[ $# -ge 1 ]]; then
docker run -v "$PWD":/src -w /src -it "$BUILD_IMAGE" "$@"
docker run --user "$(id -u):$(id -g)" -v "$PWD":/src -w /src -it "$BUILD_IMAGE" "$@"
else
docker run -v "$PWD":/src -w /src --privileged -it "$BUILD_IMAGE" /bin/bash -l
fi

0 comments on commit 836dda6

Please sign in to comment.