mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #32653 from allencloud/add-empty-string-for-restartpolicy-in-swagger
add empty string for restart policy in swagger.yml
This commit is contained in:
commit
9752e41fd0
1 changed files with 2 additions and 0 deletions
|
@ -308,10 +308,12 @@ definitions:
|
|||
Name:
|
||||
type: "string"
|
||||
description: |
|
||||
- Empty string means not to restart
|
||||
- `always` Always restart
|
||||
- `unless-stopped` Restart always except when the user has manually stopped the container
|
||||
- `on-failure` Restart only when the container exit code is non-zero
|
||||
enum:
|
||||
- ""
|
||||
- "always"
|
||||
- "unless-stopped"
|
||||
- "on-failure"
|
||||
|
|
Loading…
Reference in a new issue