add empty string for restart policy in swagger.yml

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 1c7b03a45563ae7e8000465feb04f7c299bb0d6d
Component: engine
This commit is contained in:
allencloud
2017-04-17 14:37:37 +08:00
parent 95052e2e30
commit 1c74a5638b
+2
View File
@@ -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"