4.6 Ensure that HEALTHCHECK instructions have been added to container images

Warning! Audit Deprecated

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

View Next Audit Version

Information

You should add the HEALTHCHECK instruction to your Docker container images in order to ensure that health checks are executed against running containers.

Rationale:

An important security control is that of availability. Adding the HEALTHCHECK instruction to your container image ensures that the Docker engine periodically checks the running container instances against that instruction to ensure that containers are still operational.

Based on the results of the health check, the Docker engine could terminate containers which are not responding correctly, and instantiate new ones.

Impact:

None.

Solution

You should follow the Docker documentation and rebuild your container images to include the HEALTHCHECK instruction.

Default Value:

By default, HEALTHCHECK is not set.

See Also

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