Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: UID 1001 and "useradd -r ..." are mutally exclusive #69

Closed
hzierer opened this issue Nov 21, 2023 · 2 comments
Closed

Dockerfile: UID 1001 and "useradd -r ..." are mutally exclusive #69

hzierer opened this issue Nov 21, 2023 · 2 comments

Comments

@hzierer
Copy link
Contributor

hzierer commented Nov 21, 2023

Hi @adityagajbhiye9,

your Dockerfile is working, but is not best practice.

Background: "useradd -r ..." creates a so called system account. which get by default a uid between 100-999

Please use either a uid from the range above or call useradd without "r" like this:
RUN useradd -m -d /home/sdeuser -s /bin/bash -u $USER_UID -U $USERNAME

@adityagajbhiye9
Copy link
Contributor

adityagajbhiye9 commented Nov 22, 2023

@hzierer Changed in run cmd.

@sachinargade123
Copy link
Contributor

@hzierer We have provided fix with this commit 2b63170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants