1. Home
  2. Security Hardening
  3. DISA STIG Docker Enterprise 2.x Linux Unix V2R1
  4. DKER-EE-002770 – Docker Enterprise container health must be checked at runtime.

DKER-EE-002770 – Docker Enterprise container health must be checked at runtime.

Details

If the container image does not have an HEALTHCHECK instruction defined, use –health-cmd parameter at container runtime for checking container health.

One of the important security triads is availability. If the container image being used does not have a pre-defined HEALTHCHECK instruction, use the –health-cmd parameter to check container health at runtime. Based on the reported health status, take necessary actions.

By default, health checks are not done at container runtime.

Solution

Run the container using –health-cmd and the other parameters, or include the HEALTHCHECK instruction in the Dockerfiles.

Example:
docker run -d –health-cmd=’stat /etc/passwd || exit 1′ nginx

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: System and Communications Protection.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles