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

Dockerfile: chown group error #413

Closed
jdkent opened this issue Sep 11, 2020 · 1 comment · Fixed by #414
Closed

Dockerfile: chown group error #413

jdkent opened this issue Sep 11, 2020 · 1 comment · Fixed by #414

Comments

@jdkent
Copy link
Contributor

jdkent commented Sep 11, 2020

Docker version 19.03.12, build 48a66213fe

When building the Docker Image, I got the error (or something close to this error):

unable to convert uid/gid chown string to host mapping: can't find gid for group pliers: no such group

which occurs during COPY --from=builder --chown=pliers /opt/venv /opt/venv because if a group is not specified in --chown, the version of docker I'm using assumes the group is the same as the user (e.g., pliers), but since RUN useradd --no-user-group --create-home --shell /bin/bash pliers specifies that a group should not be added, then the error occurs since the pliers group does not exist.

I can fix it by removing the option --no-user-group, but I do not know what unintended side effects I'm incurring.

@kaczmarj: looks like you wrote those lines, would you know if removing --no-user-group is a bad idea?

@kaczmarj
Copy link
Collaborator

@jdkent - to my knowledge, removing --no-user-group should be fine. That syntax comes from neurodocker, where --no-user-group is added to useradd. I might have to take a look at that again and consider removing it... thanks for letting me know.

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

Successfully merging a pull request may close this issue.

2 participants