TMAegisBêta
Plus de règles pour docker

Docker

TMA-DOCKER-6.2

Ensure that container sprawl is avoided

FaibleNiveau 1Revue manuelledocker

Description

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.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --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.

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
dockeroperations
Référence
CIS Docker Benchmark v1.9.0 - 6.2 Ensure that container sprawl is avoided