Skip to content
masterclass Buddy

Docker · Option

healthcheck

HEALTHCHECK tells Docker how to test whether a container is working. Docker tracks starting, healthy, and unhealthy states from the command's results.

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
  • FROM
  • CMD
  • ENTRYPOINT
  • healthcheck
  • service_healthy

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