TMAegisБета
Више правила за docker

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