Closed Cyb10101 closed 3 years ago
in your Docker image start
, you should run fixuid
first. Since you are running groupmod
and usermod
first, fixuid
will run and see that the UID and GID are already correct, so it won't do anything.
Hi, I tested it again. It does not fit together. Since I will not develop it further in the future, I will close the problem.
I have created a user 1000 and a group 1000 in a Dockerfile. The Dockerfile is built and is ready to be downloaded.
If one host user with ID 1001 starts the Docker image, then the system data (/etc/passwd && /etc/group) must be adapted.
At the end, the files have to be changed by the user using chown.
This works fine for the user, but not for the group.
Dockerfile:
Docker image start:
Hints:
Test it to reproduce (for example in a virtual machine):
Add
docker-compose.yml
: