Add auto_remove to api-ref

Change-Id: Icc81502bc6f1d7b65b7c47661f9e07ad65c649d3
This commit is contained in:
Feng Shengqin 2017-09-18 10:21:19 +08:00 committed by feng.shengqin
parent 2057b668bf
commit 5a7a613548
4 changed files with 13 additions and 2 deletions

View File

@ -50,6 +50,7 @@ Request
- nets: nets
- runtime: runtime
- hostname: hostname
- auto_remove: auto_remove
Request Example
----------------
@ -85,6 +86,8 @@ Response
- task_state: task_state
- status_reason: status_reason
- ports: ports
- auto_remove: auto_remove
Response Example
----------------

View File

@ -47,6 +47,12 @@ addresses:
IP address of the container. This includes both ipv4 and/or ipv6 addresses.
in: body
required: true
auto_remove:
description: |
enable auto-removal of the container on daemon side
when the containers process exits.
in: body
type: boolean
binary:
in: body
type: string

View File

@ -28,5 +28,6 @@
}
],
"runtime": "runc",
"hostname": "testhost"
"hostname": "testhost",
"auto_remove": "False"
}

View File

@ -35,5 +35,6 @@
"cpu": 2.0,
"interactive": false,
"runtime": "runc",
"hostname": "testhost"
"hostname": "testhost",
"auto_remove": "False"
}