Add reference to rename endpoint in correct version & add to new
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
ab86f591c3
commit
ee78e3f284
|
@ -56,6 +56,11 @@ Docker client now hints potential proxies about connection hijacking using HTTP
|
||||||
**New!**
|
**New!**
|
||||||
This endpoint now returns the list current execs associated with the container (`ExecIDs`).
|
This endpoint now returns the list current execs associated with the container (`ExecIDs`).
|
||||||
|
|
||||||
|
`POST /containers/(id)/rename`
|
||||||
|
|
||||||
|
**New!**
|
||||||
|
New endpoint to rename a container `id` to a new name.
|
||||||
|
|
||||||
## v1.16
|
## v1.16
|
||||||
|
|
||||||
### Full Documentation
|
### Full Documentation
|
||||||
|
|
|
@ -647,27 +647,6 @@ Status Codes:
|
||||||
- **404** – no such container
|
- **404** – no such container
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
### Rename a container
|
|
||||||
|
|
||||||
`POST /containers/(id)/rename/(new_name)`
|
|
||||||
|
|
||||||
Rename the container `id` to a `new_name`
|
|
||||||
|
|
||||||
**Example request**:
|
|
||||||
|
|
||||||
POST /containers/e90e34656806/rename/new_name HTTP/1.1
|
|
||||||
|
|
||||||
**Example response**:
|
|
||||||
|
|
||||||
HTTP/1.1 204 No Content
|
|
||||||
|
|
||||||
Status Codes:
|
|
||||||
|
|
||||||
- **204** – no error
|
|
||||||
- **404** – no such container
|
|
||||||
- **409** - conflict name already assigned
|
|
||||||
- **500** – server error
|
|
||||||
|
|
||||||
### Pause a container
|
### Pause a container
|
||||||
|
|
||||||
`POST /containers/(id)/pause`
|
`POST /containers/(id)/pause`
|
||||||
|
|
|
@ -599,6 +599,31 @@ Status Codes:
|
||||||
- **404** – no such container
|
- **404** – no such container
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
|
### Rename a container
|
||||||
|
|
||||||
|
`POST /containers/(id)/rename`
|
||||||
|
|
||||||
|
Rename the container `id` to a `new_name`
|
||||||
|
|
||||||
|
**Example request**:
|
||||||
|
|
||||||
|
POST /containers/e90e34656806/rename?name=new_name HTTP/1.1
|
||||||
|
|
||||||
|
**Example response**:
|
||||||
|
|
||||||
|
HTTP/1.1 204 No Content
|
||||||
|
|
||||||
|
Query Parameters:
|
||||||
|
|
||||||
|
- **name** – new name for the container
|
||||||
|
|
||||||
|
Status Codes:
|
||||||
|
|
||||||
|
- **204** – no error
|
||||||
|
- **404** – no such container
|
||||||
|
- **409** - conflict name already assigned
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
### Pause a container
|
### Pause a container
|
||||||
|
|
||||||
`POST /containers/(id)/pause`
|
`POST /containers/(id)/pause`
|
||||||
|
|
Loading…
Reference in New Issue