rename a existing container

Closes #3036

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Upstream-commit: 21a809d9ae0ef8392f37c9262dca93ff31966e22
Component: engine
This commit is contained in:
Srini Brahmaroutu
2014-10-05 02:47:54 +00:00
committed by Srini Brahmaroutu
parent 6a864dec5f
commit eacdfc7d44
10 changed files with 275 additions and 2 deletions

View File

@ -647,6 +647,27 @@ Status Codes:
- **404** no such container
- **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
`POST /containers/(id)/pause`