TMAegis베타
docker 관련 규칙 더 보기

Docker

TMA-DOCKER-2.12

Ensure base device size is not changed until needed

낮음레벨 2자동docker

설명

Increasing the base device size (dm.basesize) can affect all images and containers and should only be done when needed. Compliant when no dm.basesize storage option is set on the dockerd command line or in /etc/docker/daemon.json.

점검 방법

감사 방식: 셸 명령

shell
args=$(ps -eo args 2>/dev/null) || exit 1; s=$(printf '%s\n' "$args" | grep '[d]ockerd'; cat /etc/docker/daemon.json 2>/dev/null); printf '%s\n' "$s" | grep -q 'dm\.basesize' && echo noncompliant || echo compliant
예상 출력
compliant

조치 방법

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

Remove dm.basesize from "storage-opts" in /etc/docker/daemon.json and from --storage-opt start-up flags unless it is genuinely needed, then restart the Docker daemon.

속성

운영 체제
모두
태그
dockerdaemonstorage
참고 자료
CIS Docker Benchmark v1.9.0 - 2.12 Ensure base device size is not changed until needed

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target docker --level 2