SV-235805r627542_rule
V-235805
SRG-APP-000141
DKER-EE-002000
CAT I
10
Do not pass --net=host or --network=host options when starting the container.
For example, when executing docker run, do not use the --net=host nor --network=host arguments.
A more detailed reference for the docker run command can be found at https://docs.docker.com/engine/reference/run/.
Ensure the host's network namespace is not shared.
This check should be executed on all nodes in a Docker Enterprise cluster.
via CLI:
Linux: As a Docker EE Admin, execute the following command using a Universal Control Plane (UCP) client bundle:
docker ps --all | grep -iv "ucp\|kube\|dtr" | awk '{print $1}' | xargs docker inspect --format '{{ .Id }}: NetworkMode={{ .HostConfig.NetworkMode }}'
If the above command returns NetworkMode=host, this is a finding.
V-235805
False
DKER-EE-002000
Ensure the host's network namespace is not shared.
This check should be executed on all nodes in a Docker Enterprise cluster.
via CLI:
Linux: As a Docker EE Admin, execute the following command using a Universal Control Plane (UCP) client bundle:
docker ps --all | grep -iv "ucp\|kube\|dtr" | awk '{print $1}' | xargs docker inspect --format '{{ .Id }}: NetworkMode={{ .HostConfig.NetworkMode }}'
If the above command returns NetworkMode=host, this is a finding.
M
5281