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

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Docker_Enterprise_2-x_Linux-UNIX_V2R1_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CAT|II, CCI|CCI-001095, Rule-ID|SV-235827r627608_rule, STIG-ID|DKER-EE-002770, STIG-Legacy|SV-104825, STIG-Legacy|V-95687, Vuln-ID|V-235827

Plugin: Unix

Control ID: 7192943ebf63cd52cd30c75184c6ca1fa4b8b444425c17576b0131675b79a4a6