-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Can not add new user in docker container with mounted /etc/passwd and /etc/shadow #16857
Comments
You cannot use |
Mounting files with docker works fine for me.
Source: https://docs.docker.com/userguide/dockervolumes/ In fact the problem is related to the mounting of files, see: http://stackoverflow.com/a/33022690/4004007 |
@ntrifunovic Yes, my point is |
@ntrifunovic is this still an issue for you, or have you been able to resolve this? |
Yes, I will close this issue now. Maybe adding a more detailed explanation about mounting files in the documentation would be a good idea. (Example: if the mounted file is overridden with another file, the file would not be changed) |
Example of the problem
The similar problem arises when using passwd:
I have tried using the ubuntu image, but the same problem arises.
I can manually edit passwd file and shadow file from within container.
BUG REPORT INFORMATION
I am getting the same problem on following two bare metal machines:
Host OS: CentOS 7 - SELinux Disabled
Docker Version: 1.8.2, build 0a8c2e3
Host OS: CoreOS 766.4.0
Docker version: 1.7.1, build df2f73d-dirty
The text was updated successfully, but these errors were encountered: