TMAegisBeta
More rules for docker

Docker

TMA-DOCKER-2.7

Ensure devicemapper storage driver is not used

MediumLevel 1Automateddocker

Description

The devicemapper storage driver is deprecated and has known performance and stability problems. The audit reads the storage driver from docker info.

How it is checked

Audit method: Shell command

shell
d=$(docker info --format '{{.Driver}}') || exit 1; [ "$d" = devicemapper ] && echo "$d" || echo compliant
Expected output
compliant

How it is fixed

Fix method: Guidance or infrastructure patch

Migrate to the overlay2 storage driver ("storage-driver": "overlay2" in /etc/docker/daemon.json), re-pull or rebuild images and restart the Docker daemon.

Properties

Operating systems
Any
Tags
dockerdaemonstorage
Reference
CIS Docker Benchmark v1.9.0 - 2.7 Ensure devicemapper storage driver is not used

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target docker