-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Increasing layer size depending on user/group IDs #15585
Comments
Some (all?) of this appears to be useradd making sure that there's room for the user's entry in /var/log/lastlog and /var/log/faillog. If you use the -l flag when running useradd, does that prevent what you're seeing? |
It does, thanks. That's a weird way to handle auth logs. Closing because it's not an issue in docker. |
I ran into this same problem but had the docker build fail due to running out of disk space:
It now makes sense since I'm using such a big UID. Added '-l' and now it works! |
Dup of #5419 |
Running `useradd` without `--no-log-init` risks triggering a resource exhaustion issue: moby/moby#15585 moby/moby#5419 golang/go#13548
Description of Problem:
Edit: Not a docker issue.
How reproducible: 100%
Steps to Reproduce:
Build the following Dockerfile:
It doesn't seem to matter what base image we use.
Actual Results:
The RUN command results in a 335.1 kB layer. With a UID/GID of 10000 it results in a 3.25 MB layer;
with 30000 it's 9.73 MB; with 60000 it's 19.45 MB.
Expected Results:
I have no idea what's going on... But I'm sure the layer size shouldn't increase like this. 😨
The text was updated successfully, but these errors were encountered: