Docker
TMA-DOCKER-6.2
Ensure that container sprawl is avoided
낮음레벨 1수동 검토docker
설명
Large numbers of stopped containers waste resources and hide stale, unpatched workloads. Whether the count is excessive is a site decision, so this is a manual review.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
Review container sprawl: compare docker info --format '{{ .ContainersStopped }}' with docker info --format '{{ .ContainersRunning }}', list stopped containers with docker ps -a --filter status=exited and remove the ones no longer needed.
조치 방법
조치 방식: 가이드 또는 인프라 패치
Remove unused containers: docker container prune (or docker rm <id> for specific containers) after confirming they are not needed.
속성
- 운영 체제
- 모두
- 태그
- dockeroperations
- 참고 자료
- CIS Docker Benchmark v1.9.0 - 6.2 Ensure that container sprawl is avoided