1podman-rename(1) General Commands Manual podman-rename(1)
2
3
4
6 podman-rename - Rename an existing container
7
8
10 podman rename container newname
11
12
13 podman container rename container newname
14
15
17 Rename changes the name of an existing container. The old name will be
18 freed, and will be available for use. This command can be run on con‐
19 tainers in any state. However, running containers may not fully re‐
20 ceive the effects until they are restarted - for example, a running
21 container may still use the old name in its logs. At present, only
22 containers are supported; pods and volumes cannot be renamed.
23
24
27 Rename container with a given name
28
29
30 $ podman rename oldContainer aNewName
31
32
33
34 Rename container with a given ID
35
36
37 $ podman rename 717716c00a6b testcontainer
38
39
40
41 Create an alias for container with a given ID
42
43
44 $ podman container rename 6e7514b47180 databaseCtr
45
46
47
49 podman(1)
50
51
52
53 podman-rename(1)