I have an custom docker image, already builded. There is no Dockerfile available. Inside container, instead of root, an custom user, let's say test, is available. This user is attached to group test. This is default user for container.
I try to build my own image using described above base image, and add user test also to group workers. How to do this?
Using known commands (useradd, addgroup, usermod) known by me, is not helpful. After docker exec inside container, command id returns me only one group (test).
Also access to files mounted to container with permissions anotheruser:workers / 770 is not possible.
Is there a chance to do this?