Docker - Restart Docker container automatically if it crashed

Revision as of 12:03, 13 October 2019 by Ardaut (talk | changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Restart container when it crashes

docker run --name nginx-con --restart=always

--restart=always - will cause the container to automatically restart, in case the nginx daemon running inside it would crash or segfault.