Closed ckunki closed 7 months ago
Test for group with ID gid exists in Docker container DC
ubuntu
.jupyter
is added to group GTest for group with ID GID does not exist in Docker container DC
docker
is GIDdocker
On my system the following groups in DC are unique (not on host) or have a different gid:
Background
Ticket #241 fixed access to Docker socket from within the AI-Lab container after using a non-root user.
Regarding the the gid (Group ID) of the Docker socket and the existing groups inside the Docker container there are two cases
jupyter
to this groupdocker
*)*) Ansible tasks already created this group and added user
jupyter
to the group.Acceptance Criteria
The current ticket requests to add two integration tests for the described cases.
The tests will require to inspect the existing groups inside docker container.
Hint: Using a Docker container the tests can assign an arbitrary gid to a file in the host's file system with the following command
Hint No. 2: The test could verify the successful access to the mounted file by writing to the file.