From 2edb48381ad6b8a2b69a71310ec7e20acd0cced0 Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 08:46:15 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20entrypoint.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index c4af070..ec061ec 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,6 +43,7 @@ if [ "${DOCKER_USER-}" ]; then echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null # Unfortunately we cannot change $HOME as we cannot move any bind mounts # nor can we bind mount $HOME into a new home as that requires a privileged container. + sudo useradd -d /home/coder coder sudo usermod --login "$DOCKER_USER" coder sudo groupmod -n "$DOCKER_USER" coder