We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b8cff commit a5a10f3Copy full SHA for a5a10f3
ci/release-image/entrypoint.sh
@@ -5,7 +5,8 @@ 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
+
9
+if [ "${DOCKER_USER-}" ] && [ "$DOCKER_USER" != "$USER" ]; then
10
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
11
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
12
# nor can we bind mount $HOME into a new home as that requires a privileged container.
0 commit comments