4.6 Add HEALTHCHECK instruction to the container image

Information

Add HEALTHCHECK instruction in your docker container images to perform thehealth check on running containers.

Rationale:

One of the important security triads is availability. Adding HEALTHCHECK instruction to your container image ensures that the docker engine periodically checks the running container instances against that instruction to ensure that the instances are still working.

Based on the reported health status, the docker engine could then exit non-working containers and instantiate new ones.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Follow Docker documentation and rebuild your container image with HEALTHCHECK instruction.

Impact:

None.

Default Value:

By default, HEALTHCHECK is not set.

See Also

https://workbench.cisecurity.org/files/1476

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: d57e504d4dc315c94f3b51000b1807bb012f3e39d5407bc249720870403b4692