What this snippet does
The probe runs inside the container, so a missing curl makes it fail permanently.
Expected output
STATUS: Up 1 minute (unhealthy)
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
- HTTP health probeHealthcheck & Signals · intermediate
- Start period for slow bootsHealthcheck & Signals · advanced
- Custom stop signalHealthcheck & Signals · advanced
- Extending the grace periodHealthcheck & Signals · intermediate
- PID 1 ignores SIGTERMHealthcheck & Signals · advanced
- Restart policyHealthcheck & Signals · intermediate