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.