Docker 37 🐳 Restart Policies: no, on-failure, always, and unless-stopped
A container that exits is not always a container that should stay exited. A web server that crashes because of a transient network error should come back. A database that is killed by the OOM killer should restart. A batch job that completes successfully should stay stopped. Docker’s restart policies are the mechanism that distinguishes…