The Docker daemon should have live restore enabled

docker

Classification:

compliance

Framework:

cis-docker

Control:

2.16

Description

The Docker daemon should keep containers running while it restarts.

Rationale

With live restore, the containers keep running while the daemon stops, so the daemon can be upgraded or restarted without downtime for the workloads.

Audit

Check live restore in the daemon information:

docker info --format '{{ .LiveRestoreEnabled }}'

Datadog passes the rule when live restore is enabled and fails it otherwise.

Remediation

Set live-restore in daemon.json:

{
  "live-restore": true
}

Then reload the daemon with systemctl reload docker.

Impact

None.

Default value

Live restore is off, and the containers stop with the daemon.

References

  1. https://docs.docker.com/engine/daemon/live-restore/