-
Notifications
You must be signed in to change notification settings - Fork 133
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
useradd and groupadd don't work in containers #141
Comments
udocker is a run-time to execute containers when docker is unavailable. Creation of containers including adding software and users should be done with other tools i.e. using docker (not udocker). There is some minimal support in udocker to do some of the sysadmin operations but this is really limited as in this case. |
For me it appears that I think these are fundamental limitations of the rootless approach, and we need a chroot-based engine which will require root but won't require the namespaces and other kernel features we don't have in CentOS 6. |
The main problem with "useradd" is not so much with adding actual users, but with some packages that deploy their own service users during install/config and throw out errors when they try to do so, stopping the install process. |
In release 1.1.4 with can run with: |
Tested and working. Thanks, that solves the main problem we had with udocker! Much appreciated!! |
For further information on installing software with udocker see the users manual section 7.6. |
Dear all,
just as in subject: useradd and groupadd don't work in all the containers I tried so far (tested with Debian 8 and 9, Ubuntu 16.04 and 18.04, Fedora 25).
It looks like the commands are able to create their temporary files shadow+ and group+ but, for some reason, they cannot replace the originals with them.
Copying them over manually works and give me the user or group needed.
Any clue on why this is happening?
Thank you very much and thanks for this great software,
The text was updated successfully, but these errors were encountered: