HEALTHCHECK — Container Health Probe
DK · Dockerfilesyntax
HEALTHCHECK [options] CMD <command>
HEALTHCHECK NONEexample
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1Note Docker marks the container as healthy, unhealthy, or starting based on exit codes. Orchestrators use this to decide when to route traffic or restart containers. Install curl or wget in your image if you use HTTP checks.