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

Fix the empty user name when run in Docker #9

Open
Zarquan opened this issue Jul 20, 2021 · 0 comments
Open

Fix the empty user name when run in Docker #9

Zarquan opened this issue Jul 20, 2021 · 0 comments

Comments

@Zarquan
Copy link
Member

Zarquan commented Jul 20, 2021

When we run the container in Docker we need to supply a uid so that files created inside the container don't end up being owned by root outside the container.

docker run \
    --user 1000 \
    ....

This means the shell inside the container is run with uid 1000, but there is no matching entry in the user or group database, so the shell prints a warning about the group and sets the user name to I have no name!.

groups: cannot find name for group ID 1000
I have no name!

There is nothing wrong with running a process using a uid and gid with no description, they are just numbers, but it would be good to avoid the warning and set the user name to something sensible.

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

1 participant