TMAegisBeta
Thêm quy tắc cho docker

Docker

TMA-DOCKER-6.2

Ensure that container sprawl is avoided

ThấpCấp 1Xem xét thủ côngdocker

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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.

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Remove unused containers: docker container prune (or docker rm <id> for specific containers) after confirming they are not needed.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
dockeroperations
Tham chiếu
CIS Docker Benchmark v1.9.0 - 6.2 Ensure that container sprawl is avoided