-
Notifications
You must be signed in to change notification settings - Fork 481
Open
Description
Short description
Trying to use the common-utils
feature with a pre-existing user fails if there is no group with user's name.
How to reproduce
Dockerfile
FROM ubuntu:noble
RUN useradd --gid ubuntu --create-home someuser
USER someuser
devcontainer.json
{
"build": { "dockerfile": "Dockerfile" },
"features": {
"ghcr.io/devcontainers/features/common-utils": {
"username": "someuser",
"userGid": "1000",
"userUid": "1001"
}
}
}
Start the Dev Container.
Expected
Dev Container starts with the given user, with zsh being the default shell.
Actual behavior
The container build fails during the installation of the common-utils
feature. Relevant log lines:
46.19 chown: invalid group: 'someuser:someuser'
46.19 ERROR: Feature "Common Utilities" (ghcr.io/devcontainers/features/common-utils) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/common-utils for help troubleshooting this error.
Metadata
Metadata
Assignees
Labels
No labels