TMAegisBêta
Plus de règles pour docker

Docker

TMA-DOCKER-1.1.1

Ensure a separate partition for containers has been created

MoyenneNiveau 1Automatiséedocker

Description

Docker stores images and container data under its root directory (default /var/lib/docker); a separate partition stops containers filling the host root filesystem. The audit reads DockerRootDir from docker info and checks it is a mount point (mountpoint -q).

Méthode de vérification

Méthode d'audit: Commande shell

shell
d=$(docker info --format '{{ .DockerRootDir }}') || exit 1; [ -n "$d" ] || exit 1; if mountpoint -q -- "$d"; then echo compliant; else echo "not a separate mount: $d"; fi
Sortie attendue
compliant

Méthode de correction

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

For new installations, you should create a separate partition for the /var/lib/docker mount point. For systems which have already been installed, you should use the Logical Volume Manager (LVM) within Linux to create a new partition.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
dockerhoststorage
Référence
CIS Docker Benchmark v1.9.0 - 1.1.1 Ensure a separate partition for containers has been created

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target docker