OpenParable
Skip to content
← Back to skills

Cis Docker V170 1.1.1

DevOps & Security
cis-docker-v170-1.1.1

Cis Docker V170 1.1.1 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure a separate partition for containers has been created

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Docker/CIS_Docker_Benchmark_v1.7.0/cis-docker-v170-1.1.1/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-docker-v170-1-1-1, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

CIS Docker Benchmark v1.7.0 - Control 1.1.1

Profile

  • Level: 1 - Docker - Linux
  • Assessment Status: Manual

Description

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.

Audit Procedure

At the Docker host execute one of the below commands:

grep '/var/lib/docker\s*' /proc/mounts

This should return the partition details for the /var/lib/docker mountpoint.

mountpoint -- "$(docker info -f '{{ .DockerRootDir }}')"

This should return whether the configured root directory is a mount point.

Remediation

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.

References

  1. https://www.projectatomic.io/docs/docker-storage-recommendation/
  2. https://docs.docker.com/storage/

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v83.12 Segment Data Processing and Storage Based on SensitivitySegment data processing and storage based on the sensitivity of the data. Do not process sensitive data on enterprise assets intended for lower sensitivity data.●●
v714 Controlled Access Based on the Need to KnowControlled Access Based on the Need to Know