Skip to content

Added support for restart_policy parameter - #712

Closed
kennu wants to merge 1 commit into
docker:masterfrom
kennu:master
Closed

kennu wants to merge 1 commit into
docker:masterfrom
kennu:master

Conversation

@kennu

@kennu kennu commented Dec 7, 2014

Copy link
Copy Markdown

This patch adds the restart_policy parameter to services. The parameter
is passed to the Docker API when starting containers. Its recognized
values are the same as in the Docker CLI ("always" and "on-failure[:max-retry]").

For future compatibility, the policy can also be specified as a
dictionary, which is passed directly to the Docker API (after converting
the keys to CamelCase).

This feature seems to have been requested at least in issue #478.

Signed-off-by: Kenneth Falck [email protected]

This patch adds the restart_policy parameter to services. The parameter
is passed to the Docker API when starting containers. Its recognized values
are the same as in the Docker CLI ("always" and "on-failure[:max-retry]").

For future compatibility, the policy can also be specified as a
dictionary, which is passed directly to the Docker API (after converting
the keys to CamelCase).

This feature seems to have been requested at least in issue docker#478.

Signed-off-by: Kenneth Falck <[email protected]>
@dnephin

dnephin commented Dec 7, 2014

Copy link
Copy Markdown

See #594

@bfirsh

bfirsh commented Dec 9, 2014

Copy link
Copy Markdown

This has now been merged. Thanks anyway, @kennu!

@bfirsh bfirsh closed this Dec 9, 2014
@kennu

kennu commented Dec 9, 2014

Copy link
Copy Markdown
Author

Nice that it's in there, one form or another :-)

@cosminonnet

Copy link
Copy Markdown

Hi, thanks for this feature!
Is the "restart_policy" parameter available in Fig 1.0.1?
If not, how can I start using it?

@cosminonnet cosminonnet mentioned this pull request Dec 13, 2014
@tomkersten tomkersten mentioned this pull request Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants