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.
修正方法
修正方法: ガイダンスまたは IaC パッチ
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