We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cab7baf commit f5c9b1aCopy full SHA for f5c9b1a
ci/release-image/entrypoint.sh
@@ -5,7 +5,7 @@ set -eu
5
# Otherwise the current container UID may not exist in the passwd database.
6
eval "$(fixuid -q)"
7
8
-if [ "${DOCKER_USER-}" ]; then
+if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then
9
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
10
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
11
# nor can we bind mount $HOME into a new home as that requires a privileged container.
0 commit comments