1.1.1 Ensure a separate partition for containers has been created

Information

All Docker containers and their data and metadata is stored under /var/lib/docker directory. By default, /var/lib/docker should be mounted under either the / or /var partitions dependent on how the Linux operating system in use is configured.

Rationale:

Docker depends on /var/lib/docker as the default directory where all Docker related files, including the images, are stored. This directory could fill up quickly causing both Docker and the host to become unusable. For this reason, you should create a separate partition (logical volume) for storing Docker files.

Impact:

None.

Solution

For new installations, you should create a separate partition for the /var/lib/docker mount point. For systems which have already been installed, you should use the Logical Volume Manager (LVM) within Linux to create a new partition.

Default Value:

By default, /var/lib/docker is mounted under the / or /var partitions dependent on how the OS is configured.

See Also

https://workbench.cisecurity.org/files/3353

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-4, CSCv6|14, CSCv7|14

Plugin: Unix

Control ID: 8cfbe508733562a2c17990c3016b7ecbd969f8e0e3f4c8730640396034dcabdf