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

Buehler, Matthias Matthias.Buehler at trumpf.com
Fri Nov 6 09:15:59 CET 2020


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. Applying that to elbe solved my problem.

>From 1b0fef6d311eff83fa80a8c8cbe46c4c4ec5801f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20B=C3=BChler?= <matthias.buehler at trumpf.com>
Date: Tue, 3 Dec 2019 09:52:16 +0100
Subject: [PATCH] Dockerfile.in: added parameter -l to useradd to avoid
 blocking if user is AD user

---
 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 cf1d56873..d93095db6 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.11.0



More information about the elbe-devel mailing list