Closed mreithub closed 9 years ago
On second thought, null
should be equal to the default value, so the mapping now is:
"always"
/true
/null
: Restart the service if it stopped/crashed (and on system boot)"on-failure"
: Restart only if it exited with a nonzero exit codefalse
: Don't restart
Allow users to specify the restart policy in their
.rocker
files. Right now rocker doesn't specify the restart policy to the Docker API which causes it to default tonone
(i.e. the containers won't get restarted if they exit or if the server reboots).rocker should probably use a default of
always
.Supported values:
"always"
/true
: Always restart services"on-failure"
: Restart on non-zero exit codenull
/false
: Don't restart