1. Home
  2. Security Hardening
  3. DISA STIG Docker Enterprise 2.x Linux Unix V2R1
  4. DKER-EE-002130 – The Docker Enterprise socket must not be mounted inside any containers.

DKER-EE-002130 – The Docker Enterprise socket must not be mounted inside any containers.

Details

The docker socket docker.sock (Linux) and .pipedocker_engine (Windows) should not be mounted inside a container, with the exception case being during the installation of Universal Control Plane (UCP) component of Docker Enterprise as it is required for install.

If the docker socket is mounted inside a container it would allow processes running within the container to execute docker commands which effectively allows for full control of the host.

By default, docker.sock (linux) and .pipedocker_engine (windows) is not mounted inside containers.

Solution

When 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/.

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles