SV-235827r627608_rule
V-235827
SRG-APP-000247
DKER-EE-002770
CAT II
10
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
Ensure container health is checked at runtime.
via CLI:
Linux: As a Docker EE Admin, execute the following command using a Universal Control Plane (UCP) client bundle:
Run the below command and ensure that all the containers are reporting health status:
docker ps --quiet | xargs docker inspect --format '{{ .Id }}: Health={{ .State.Health.Status }}'
If Health does not = "Healthy", this is a finding.
V-235827
False
DKER-EE-002770
Ensure container health is checked at runtime.
via CLI:
Linux: As a Docker EE Admin, execute the following command using a Universal Control Plane (UCP) client bundle:
Run the below command and ensure that all the containers are reporting health status:
docker ps --quiet | xargs docker inspect --format '{{ .Id }}: Health={{ .State.Health.Status }}'
If Health does not = "Healthy", this is a finding.
M
5281