Reference / Docker & Containerization
HEALTHCHECK
Tells Docker how to test a container to check that it is still working.
Syntax
HEALTHCHECK [OPTIONS] CMD commandParameters
| Name | Type | Description |
|---|---|---|
| expression | mixed | Target 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.