SV-260922r966123_rule
V-260922
SRG-APP-000141-CTR-000315
CNTR-MK-000550
CAT II
10
If using Kubernetes orchestration, this check is Not Applicable.
When using Swarm orchestration and using the -v/--volume flags to mount volumes to containers in a docker run command, do not use docker.sock as a volume.
A reference for the docker run command can be found at https://docs.docker.com/engine/reference/run/.
Review and remove nonsystem containers previously created by these users without the runAsGroup must be removed using:
docker container rm [container]
If using Kubernetes orchestration, this check is Not Applicable.
When using Swarm orchestration, log in to the CLI as an MKE Admin, and execute the following command using an MKE client bundle:
docker ps --all --filter "label=com.docker.ucp.version" | xargs docker inspect --format '{{ .Id }}: Volumes={{ .Mounts }}' | grep -i "docker.sock\|docker_engine"
If the Docker socket is mounted inside containers, this is a finding.
If "volumes" is not present or if "docker.sock" is listed, this is a finding.
V-260922
False
CNTR-MK-000550
If using Kubernetes orchestration, this check is Not Applicable.
When using Swarm orchestration, log in to the CLI as an MKE Admin, and execute the following command using an MKE client bundle:
docker ps --all --filter "label=com.docker.ucp.version" | xargs docker inspect --format '{{ .Id }}: Volumes={{ .Mounts }}' | grep -i "docker.sock\|docker_engine"
If the Docker socket is mounted inside containers, this is a finding.
If "volumes" is not present or if "docker.sock" is listed, this is a finding.
M
5595