TMAegis베타
docker 관련 규칙 더 보기

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

조치 방법

조치 방식: 가이드 또는 인프라 패치

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