[elbe-devel] [PATCH] Dockerfile.in: avoid blocking if user is AD user
Bastian Germann
bage at linutronix.de
Wed Jan 13 14:20:26 CET 2021
Am 06.11.20 um 09:15 schrieb Buehler, Matthias:
> 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
Hi Matthias,
Please resend your `git format-patch` formatted patch with a
Signed-off-by line that certifies the origin of the patch. With this you
say that for this elbe contribution you agree to
https://developercertificate.org/
Sorry for the late answer.
Regards,
Bastian
> ---
> 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
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
>
More information about the elbe-devel
mailing list