mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Document the pause and unpause commands available on API v1.12 onwards
Docker-DCO-1.1-Signed-off-by: Abel Muiño <amuino@gmail.com> (github: amuino)
This commit is contained in:
parent
4f5e91e3b4
commit
901a47daff
2 changed files with 82 additions and 2 deletions
|
@ -509,6 +509,46 @@ Kill the container `id`
|
||||||
- **404** – no such container
|
- **404** – no such container
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
|
### Pause a container
|
||||||
|
|
||||||
|
`POST /containers/(id)/pause`
|
||||||
|
|
||||||
|
Pause the container `id`
|
||||||
|
|
||||||
|
**Example request**:
|
||||||
|
|
||||||
|
POST /containers/e90e34656806/pause HTTP/1.1
|
||||||
|
|
||||||
|
**Example response**:
|
||||||
|
|
||||||
|
HTTP/1.1 204 OK
|
||||||
|
|
||||||
|
Status Codes:
|
||||||
|
|
||||||
|
- **204** – no error
|
||||||
|
- **404** – no such container
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
|
### Unpause a container
|
||||||
|
|
||||||
|
`POST /containers/(id)/unpause`
|
||||||
|
|
||||||
|
Unpause the container `id`
|
||||||
|
|
||||||
|
**Example request**:
|
||||||
|
|
||||||
|
POST /containers/e90e34656806/unpause HTTP/1.1
|
||||||
|
|
||||||
|
**Example response**:
|
||||||
|
|
||||||
|
HTTP/1.1 204 OK
|
||||||
|
|
||||||
|
Status Codes:
|
||||||
|
|
||||||
|
- **204** – no error
|
||||||
|
- **404** – no such container
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
### Attach to a container
|
### Attach to a container
|
||||||
|
|
||||||
`POST /containers/(id)/attach`
|
`POST /containers/(id)/attach`
|
||||||
|
|
|
@ -509,6 +509,46 @@ Kill the container `id`
|
||||||
- **404** – no such container
|
- **404** – no such container
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
|
### Pause a container
|
||||||
|
|
||||||
|
`POST /containers/(id)/pause`
|
||||||
|
|
||||||
|
Pause the container `id`
|
||||||
|
|
||||||
|
**Example request**:
|
||||||
|
|
||||||
|
POST /containers/e90e34656806/pause HTTP/1.1
|
||||||
|
|
||||||
|
**Example response**:
|
||||||
|
|
||||||
|
HTTP/1.1 204 OK
|
||||||
|
|
||||||
|
Status Codes:
|
||||||
|
|
||||||
|
- **204** – no error
|
||||||
|
- **404** – no such container
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
|
### Unpause a container
|
||||||
|
|
||||||
|
`POST /containers/(id)/unpause`
|
||||||
|
|
||||||
|
Unpause the container `id`
|
||||||
|
|
||||||
|
**Example request**:
|
||||||
|
|
||||||
|
POST /containers/e90e34656806/unpause HTTP/1.1
|
||||||
|
|
||||||
|
**Example response**:
|
||||||
|
|
||||||
|
HTTP/1.1 204 OK
|
||||||
|
|
||||||
|
Status Codes:
|
||||||
|
|
||||||
|
- **204** – no error
|
||||||
|
- **404** – no such container
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
### Attach to a container
|
### Attach to a container
|
||||||
|
|
||||||
`POST /containers/(id)/attach`
|
`POST /containers/(id)/attach`
|
||||||
|
|
Loading…
Add table
Reference in a new issue