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 and Disk Space Increases When Setting High User ID #2664

Open
gavinwang668 opened this issue Aug 24, 2024 · 2 comments
Open

Comments

@gavinwang668
Copy link

Description

I pulled the official Redis image, where the user is 999 redis. However, in our Kubernetes cluster, the minimum allowed user ID for running container users in pods is above 1000990000. I attempted to modify the user ID 999 or delete the redis user and add a new redis user with UID=1000990000 using a Dockerfile. However, when I run docker build, it hangs at the USER 1000990000 command and doesn't proceed. My disk space usage keeps increasing. Is this a bug in Docker?

Reproduce

My Dockerfile is just as the following

FROM redis:7.0.12
USER 1000990000

Expected behavior

No response

docker version

client version 27.x 版本

docker info

client version 27.x 版本

Additional Info

No response

@gavinwang668 gavinwang668 added the kind/bug Something isn't working label Aug 24, 2024
@thaJeztah
Copy link
Member

I suspect this may be some permutation of this ticket;

Which does have more information about this

@thaJeztah thaJeztah transferred this issue from docker/cli Aug 27, 2024
@tonistiigi
Copy link
Member

Do you mean this hangs when you try to run this image later when running docker run? This doesn't make sense in buildkit with your Dockerfile, as USER only sets the value in the exported image config(if you export one) and doesn't execute anything.

fwiw I couldn't repro with docker run either.

@tonistiigi tonistiigi added status/needs-more-info and removed kind/bug Something isn't working labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants