TMAegisBeta
Aturan lainnya untuk docker

Docker

TMA-DOCKER-6.2

Ensure that container sprawl is avoided

RendahLevel 1Tinjauan manualdocker

Deskripsi

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.

Cara pemeriksaan

Metode audit: Tinjauan manual

Rekomendasi ini tidak dapat diperiksa secara otomatis. Pemindaian akan menampilkannya beserta petunjuk ini saat Anda memberikan opsi --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.

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

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

Properti

Sistem operasi
Apa saja
Tag
dockeroperations
Referensi
CIS Docker Benchmark v1.9.0 - 6.2 Ensure that container sprawl is avoided