8000
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 cb649ae commit e9de4bbCopy full SHA for e9de4bb
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