1podman-rename(1)            General Commands Manual           podman-rename(1)
2
3
4

NAME

6       podman-rename - Rename an existing container
7
8

SYNOPSIS

10       podman rename container newname
11
12
13       podman container rename container newname
14
15

DESCRIPTION

17       Rename  changes  the  name  of  an existing container.  The old name is
18       freed, and is available for use.  This command can be run on containers
19       in  any  state.   However, running containers may not fully receive the
20       effects until they are restarted - for example, a running container may
21       still  use  the  old name in its logs.  At present, only containers are
22       supported; pods and volumes cannot be renamed.
23
24

OPTIONS

EXAMPLES

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

SEE ALSO

49       podman(1)
50
51
52
53                                                              podman-rename(1)
Impressum