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

Docker build hangs/crashes when useradd with large UID #33

Closed
wpietruszewski opened this issue Dec 28, 2022 · 1 comment
Closed

Docker build hangs/crashes when useradd with large UID #33

wpietruszewski opened this issue Dec 28, 2022 · 1 comment

Comments

@wpietruszewski
Copy link

When running build-tools command as user with large UID (using Linux IdM) the docker build freezes on

Step 8/17 : RUN groupadd -g $GID -o $USERNAME && useradd -m -u $UID -g $GID -o -s /bin/bash $USERNAME && usermod -a -G sudo $USERNAME && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

As per moby/moby#5419 the solution is to add l or --no-log-init to useradd command.

threema-danilo added a commit that referenced this issue Feb 6, 2023
@threema-danilo
Copy link
Contributor

Thank you, fixed in 6d6e1be!

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

No branches or pull requests

2 participants