Docker

HTTP health probe in Docker

DockerHealthcheck & SignalsHEALTHCHECKintermediate

What this snippet does

The exit status of the probe decides health, and repeated failures mark the container unhealthy.

Expected output

STATUS: Up 2 minutes (healthy)

Why practise typing this

Typing healthcheck & signals code builds muscle memory for the symbols and indentation Docker uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Docker practice

Browse all Docker snippets →