docker run --health-cmd 'curl -f http://localhost/' myimage

Category: Docker

docker run --health-cmd 'curl -f http://localhost/' myimage

Define a health check command for the container

Defines a health check command. Docker runs this periodically to see if the container is healthy.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.