podman-rename - Man Page

Rename an existing container

Synopsis

podman rename container newname

podman container rename container newname

Description

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.

Options

Examples

# Rename a container by name
$ podman rename oldContainer aNewName
# Rename a container by ID
$ podman rename 717716c00a6b testcontainer
# Use the container rename alias
$ podman container rename 6e7514b47180 databaseCtr

See Also

podman(1), podman-create(1), podman-run(1)

Referenced By

podman(1), podman-container(1).

The man page podman-container-rename(1) is an alias of podman-rename(1).