docker run --restart on-failure:3 myimage

Category: Docker

docker run --restart on-failure:3 myimage

Restart container on failure, max 3 retries

Restarts the container on failure, but only up to 3 times before giving up.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.