mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 07:48:44 +00:00
rename a existing container
Closes #3036 Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
committed by
Srini Brahmaroutu
parent
9b0072a7e6
commit
21a809d9ae
@@ -0,0 +1,13 @@
|
||||
% DOCKER(1) Docker User Manuals
|
||||
% Docker Community
|
||||
% OCTOBER 2014
|
||||
# NAME
|
||||
docker-rename - Rename a container
|
||||
|
||||
# SYNOPSIS
|
||||
**docker rename**
|
||||
OLD_NAME NEW_NAME
|
||||
|
||||
# OPTIONS
|
||||
There are no available options.
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -1366,6 +1366,30 @@ just a specific mapping:
|
||||
$ sudo docker port test 7890
|
||||
0.0.0.0:4321
|
||||
|
||||
## pause
|
||||
|
||||
Usage: docker pause CONTAINER
|
||||
|
||||
Pause all processes within a container
|
||||
|
||||
The `docker pause` command uses the cgroups freezer to suspend all processes in
|
||||
a container. Traditionally when suspending a process the `SIGSTOP` signal is
|
||||
used, which is observable by the process being suspended. With the cgroups freezer
|
||||
the process is unaware, and unable to capture, that it is being suspended,
|
||||
and subsequently resumed.
|
||||
|
||||
See the
|
||||
[cgroups freezer documentation](https://www.kernel.org/doc/Documentation/cgroups/freezer-subsystem.txt)
|
||||
for further details.
|
||||
|
||||
## rename
|
||||
|
||||
Usage: docker rename OLD_NAME NEW_NAME
|
||||
|
||||
rename a existing container to a NEW_NAME
|
||||
|
||||
The `docker rename` command allows the container to be renamed to a different name.
|
||||
|
||||
## ps
|
||||
|
||||
Usage: docker ps [OPTIONS]
|
||||
|
||||
Reference in New Issue
Block a user