Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / Docker & Containerization

HEALTHCHECK

Tells Docker how to test a container to check that it is still working.

Syntax
HEALTHCHECK [OPTIONS] CMD command

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working HEALTHCHECK usage example
// Example for HEALTHCHECK
// Standard verified syntax construct
console.log('HEALTHCHECK initialized');
Standard Docker language feature verified across modern versions.