Docker
TMA-DOCKER-1.1.1
Ensure a separate partition for containers has been created
中レベル 1自動docker
説明
Docker stores images and container data under its root directory (default /var/lib/docker); a separate partition stops containers filling the host root filesystem. The audit reads DockerRootDir from docker info and checks it is a mount point (mountpoint -q).
チェック方法
監査方法: シェルコマンド
shell
d=$(docker info --format '{{ .DockerRootDir }}') || exit 1; [ -n "$d" ] || exit 1; if mountpoint -q -- "$d"; then echo compliant; else echo "not a separate mount: $d"; fi- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
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.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- dockerhoststorage
- 参照
- CIS Docker Benchmark v1.9.0 - 1.1.1 Ensure a separate partition for containers has been created
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target docker