Skip to content

Glossary: Docker Basics

Health check

Also written: HEALTHCHECK, healthcheck:, healthy, unhealthy

A command Docker runs inside a container every few seconds; exit code 0 means healthy and repeated failures mean unhealthy. Compose can wait for a service to be healthy before starting others.

Where the book teaches it

Related terms

depends_onExit codeRestart policy