Cis Docker 1.1.1
DevOps & Securitycis-docker-1.1.1Cis Docker 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
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Docker/CIS_Docker_Benchmark_v1.8.0/cis-docker-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-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.
Ensure a separate partition for containers has been created (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
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
CIS Controls
Controls Version | Control | IG 1 | IG 2 | IG 3
v8 | 3.12 Segment Data Processing and Storage Based on Sensitivity Segment data processing and storage based on the sensitivity of the data. Do not process sensitive data on enterprise assets intended for lower sensitivity data. | | ● | ●
v7 | 14 Controlled Access Based on the Need to Know Controlled Access Based on the Need to Know | | |
Profile
• Level 1 - Docker - Linux