Skip to content

Container Healthcheck

A command Docker runs periodically to determine whether a container is actually working, not just running.

Defined via HEALTHCHECK in a Dockerfile or the healthcheck key in Compose, it lets orchestration restart unhealthy containers and lets dependencies wait until a service is truly ready.

Related articles

Docker

A platform for packaging applications and their dependencies into lightweight, portable containers.

Docker Compose

A tool that defines and runs multi-container applications from a single declarative YAML file.

Watchtower

A tool that automatically updates running Docker containers to their latest images.