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.sh build error #15

Open
En-lightener opened this issue Mar 23, 2024 · 2 comments
Open

./docker.sh build error #15

En-lightener opened this issue Mar 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@En-lightener
Copy link

Step 8/38 : RUN usermod -u $USER_ID moos
---> Running in 97e913ca6b0c
usermod: UID '0' already exists
The command '/bin/bash -c usermod -u $USER_ID moos' returned a non-zero code: 4

What is the problem and how to solve it

@CarterFendley
Copy link
Contributor

Hi @En-lightener,

This is happening due to the docker configuration, admittedly it is not the best setup, but in order to have proper file permissions on Linux, I had to mirror the user's UID into the docker container which allowed for write access to the files copied inside the container. The script will detect your UID on your host machine (desktop / laptop / etc) and try to use that for the moos user in the docker container.

It looks like, when launching the docker container, you are logged in with a user which has a UID of zero. Because this is already used by the root user in the docker container, you are getting an error.

I would suggest trying to launch docker via a non-root user (one without UID of zero).

@CarterFendley
Copy link
Contributor

I will mark this is a place for enhancement, it would be nice not to have this UID collision issue.

@CarterFendley CarterFendley added the enhancement New feature or request label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants