What restart policies does Docker have?

IntermediateConceptDocker
Answer

no (the default), on-failure[:N], always, and unless-stopped, which is like always but stays down after you stop it manually.

docker run -d --restart unless-stopped nginx
All Real-World Interview questions Roadmap: Interview readiness

More on Docker