depends_on and healthchecks
Select an icon to see what it is.
Step 2 of 6
dockerd runs the check on a timer
After db starts, its health is starting. dockerd runs the Test inside the container, as an exec, once every interval. It records the exit code and output of each run.
docker inspect (State.Health)
{"State": {"Health": {"Status": "starting""FailingStreak": 1"Log": [{"ExitCode": 2"Output": "/var/run/postgresql:5432 - no response"}]}}}