[elbe-devel] [PATCH] Dockerfile.in: avoid blocking if user is AD user

bage at linutronix.de bage at linutronix.de
Wed Jan 13 15:03:10 CET 2021


From: Matthias Bühler <matthias.buehler at trumpf.com>

When trying to build docker image with an AD-user docker build blocks in call
to useradd. Searching the internet showed it is a known problem with useradd
in docker. As a workaround one can add option -l.

Signed-off-by: Matthias Bühler <matthias.buehler at trumpf.com>
[edit commit message]
Reviewed-by: Bastian Germann <bage at linutronix.de>
---
 contrib/dockerfile/Dockerfile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/dockerfile/Dockerfile.in b/contrib/dockerfile/Dockerfile.in
index 895bb5e7b..996c24945 100644
--- a/contrib/dockerfile/Dockerfile.in
+++ b/contrib/dockerfile/Dockerfile.in
@@ -62,7 +62,7 @@ RUN rm -rf /var/lib/apt/lists/*
 
 # create elbe user
 RUN groupadd -g @KVMGID@ -o -r kvm-elbe
-RUN useradd -d /home/elbe -U -G kvm-elbe,libvirt -m -s /bin/bash -u @USERID@ elbe
+RUN useradd -d /home/elbe -l -U -G kvm-elbe,libvirt -m -s /bin/bash -u @USERID@ elbe
 RUN echo "root:elbe" | chpasswd
 RUN echo "elbe:elbe" | chpasswd
 
-- 
2.29.2



More information about the elbe-devel mailing list