Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
| ... | ... |
@@ -56,6 +56,11 @@ Docker client now hints potential proxies about connection hijacking using HTTP |
| 56 | 56 |
**New!** |
| 57 | 57 |
This endpoint now returns the list current execs associated with the container (`ExecIDs`). |
| 58 | 58 |
|
| 59 |
+`POST /containers/(id)/rename` |
|
| 60 |
+ |
|
| 61 |
+**New!** |
|
| 62 |
+New endpoint to rename a container `id` to a new name. |
|
| 63 |
+ |
|
| 59 | 64 |
## v1.16 |
| 60 | 65 |
|
| 61 | 66 |
### Full Documentation |
| ... | ... |
@@ -647,27 +647,6 @@ Status Codes: |
| 647 | 647 |
- **404** – no such container |
| 648 | 648 |
- **500** – server error |
| 649 | 649 |
|
| 650 |
-### Rename a container |
|
| 651 |
- |
|
| 652 |
-`POST /containers/(id)/rename/(new_name)` |
|
| 653 |
- |
|
| 654 |
-Rename the container `id` to a `new_name` |
|
| 655 |
- |
|
| 656 |
-**Example request**: |
|
| 657 |
- |
|
| 658 |
- POST /containers/e90e34656806/rename/new_name HTTP/1.1 |
|
| 659 |
- |
|
| 660 |
-**Example response**: |
|
| 661 |
- |
|
| 662 |
- HTTP/1.1 204 No Content |
|
| 663 |
- |
|
| 664 |
-Status Codes: |
|
| 665 |
- |
|
| 666 |
-- **204** – no error |
|
| 667 |
-- **404** – no such container |
|
| 668 |
-- **409** - conflict name already assigned |
|
| 669 |
-- **500** – server error |
|
| 670 |
- |
|
| 671 | 650 |
### Pause a container |
| 672 | 651 |
|
| 673 | 652 |
`POST /containers/(id)/pause` |
| ... | ... |
@@ -599,6 +599,31 @@ Status Codes: |
| 599 | 599 |
- **404** – no such container |
| 600 | 600 |
- **500** – server error |
| 601 | 601 |
|
| 602 |
+### Rename a container |
|
| 603 |
+ |
|
| 604 |
+`POST /containers/(id)/rename` |
|
| 605 |
+ |
|
| 606 |
+Rename the container `id` to a `new_name` |
|
| 607 |
+ |
|
| 608 |
+**Example request**: |
|
| 609 |
+ |
|
| 610 |
+ POST /containers/e90e34656806/rename?name=new_name HTTP/1.1 |
|
| 611 |
+ |
|
| 612 |
+**Example response**: |
|
| 613 |
+ |
|
| 614 |
+ HTTP/1.1 204 No Content |
|
| 615 |
+ |
|
| 616 |
+Query Parameters: |
|
| 617 |
+ |
|
| 618 |
+- **name** – new name for the container |
|
| 619 |
+ |
|
| 620 |
+Status Codes: |
|
| 621 |
+ |
|
| 622 |
+- **204** – no error |
|
| 623 |
+- **404** – no such container |
|
| 624 |
+- **409** - conflict name already assigned |
|
| 625 |
+- **500** – server error |
|
| 626 |
+ |
|
| 602 | 627 |
### Pause a container |
| 603 | 628 |
|
| 604 | 629 |
`POST /containers/(id)/pause` |