Skip to content
masterclass Buddy

Docker · Directive

HEALTHCHECK

HEALTHCHECK tells Docker how to test whether a container is still working. Docker reports starting, healthy, or unhealthy based on the command result and consecutive failures.

Last updated

Syntax

HEALTHCHECK [OPTIONS] CMD command
HEALTHCHECK NONE

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Dockerfile
  • CMD
  • Compose service healthcheck
  • docker inspect

Source: Dockerfile reference. Checked 2026-11-03.