mreithub / rocker

Docker wrapper
Apache License 2.0
4 stars 0 forks source link

Feature: restart policy support #2

Closed mreithub closed 9 years ago

mreithub commented 9 years ago

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 to none (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:

mreithub commented 9 years ago

On second thought, null should be equal to the default value, so the mapping now is: