We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd5ad7a commit 0c4f7c1Copy full SHA for 0c4f7c1
src/ci/docker/run.sh
@@ -281,10 +281,13 @@ else
281
# Rootless podman creates a separate user namespace, where an inner
282
# LOCAL_USER_ID will map to a different subuid range on the host.
283
# The "keep-id" mode maps the current UID directly into the container.
284
+ echo "Running in rootless podman"
285
args="$args --env NO_CHANGE_USER=1 --userns=keep-id"
286
elif [[ "$id" != 0 ]]; then
287
+ echo "Running in docker as non-root"
288
args="$args --env LOCAL_USER_ID=$id"
289
else
290
+ echo "Running in docker as root. Using id 1001."
291
# If we're running as root, we don't want to run the container as root,
292
# so we set id `1001` instead of `0`.
293
args="$args --env LOCAL_USER_ID=1001"
0 commit comments