Skip to content

Best Practices - Possibly outdated note #4754

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

Closed
bzier opened this issue Sep 29, 2017 · 4 comments
Closed

Best Practices - Possibly outdated note #4754

bzier opened this issue Sep 29, 2017 · 4 comments
Labels
area/engine Issue affects Docker engine/daemon lifecycle/locked

Comments

@bzier
Copy link

bzier commented Sep 29, 2017

The best practices page refers to an unresolved bug that looks like it was recently closed. I didn't look closely at the issue or the resolution, but noticed that it was closed on 9/20. It may be worth keeping an eye on it and possibly cleaning up / removing this note.

Note: Due to an unresolved bug in the Go archive/tar package's handling of sparse files, attempting to create a user with a sufficiently large UID inside a Docker container can lead to disk exhaustion as /var/log/faillog in the container layer is filled with NUL (\0) characters. Passing the --no-log-init flag to useradd works around this issue. The Debian/Ubuntu adduser wrapper does not support the --no-log-init flag and should be avoided.

Certainly not critical, but since the bug had been outstanding for almost 2 years, I thought it was worth pointing out.

File: engine/userguide/eng-image/dockerfile_best-practices.md, CC @mstanleyjones

@johndmulhausen johndmulhausen added the area/engine Issue affects Docker engine/daemon label Oct 2, 2017
@mdlinville
Copy link

@tiborvass @thaJeztah Is this note still accurate for Docker?

@thaJeztah
Copy link
Member

No it's not resolved yet; it's not really a bug, more a feature that was not implemented. Even if that issue is resolved, very high user ids will still result in really big images, so can still exhaust the file system.

See moby/moby#5419 (comment) for the latest discussion

@bzier
Copy link
Author

bzier commented Oct 3, 2017

Feel free to do with this as you see fit. I am not affected by the issue, but just wanted to point out what I saw and start the discussion.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker docker locked and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/engine Issue affects Docker engine/daemon lifecycle/locked
Projects
None yet
Development

No branches or pull requests

5 participants