Docker: Restart Policy

FlagStopped from inside container with “service xxx stop” (exit 0)Stoped from outside container with “docker kill xxx” (exit 137)
nostopped, stopped after daemon restartstopped, stopped after daemon restart
on-failurestopped, stopped after daemon restartstopped, started after daemon restart
unless-stoppedrestarted, started after daemon restartstopped, stopped after daemon restart
alwaysrestarted, started after daemon restartstopped, started after daemon restart


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *