Free Docker Healthcheck CURL Generator for Exit Status

Generate robust, POSIX-compliant Docker healthcheck commands with custom exit status validation.

Connection Settings

Verification Logic

If the response matches this, exit 0 (healthy). Otherwise, exit 1 (unhealthy).

Dockerfile Command


                    
                    
                    

Pro Tip

This command uses standard sh and curl, ensuring compatibility with minimal images like Alpine Linux. Update the --interval or --retries parameters in your Dockerfile as needed for your traffic patterns.

Copied to clipboard!