.nh .TH podman\-rename(1) .SH NAME .PP podman\-rename \- Rename an existing container .SH SYNOPSIS .PP \fBpodman rename\fP \fIcontainer\fP \fInewname\fP .PP \fBpodman container rename\fP \fIcontainer\fP \fInewname\fP .SH DESCRIPTION .PP Rename changes the name of an existing container. The old name will be freed, and will be available for use. This command can be run on containers in any state. However, running containers may not fully receive the effects until they are restarted \- for example, a running container may still use the old name in its logs. At present, only containers are supported; pods and volumes cannot be renamed. .SH OPTIONS .SH EXAMPLES .PP .RS .nf # Rename a container by name $ podman rename oldContainer aNewName .fi .RE .PP .RS .nf # Rename a container by ID $ podman rename 717716c00a6b testcontainer .fi .RE .PP .RS .nf # Use the container rename alias $ podman container rename 6e7514b47180 databaseCtr .fi .RE .SH SEE ALSO .PP podman(1), podman\-create(1), podman\-run(1)