LinuxCommandLibrary

docker-container-rename

rename an existing container

TLDR

Rename a container

$ docker container rename [old_name] [new_name]
copy

SYNOPSIS

docker container rename container newname_

DESCRIPTION

docker container rename renames a container to a new name without affecting its configuration, state, or data. This operation works on both running and stopped containers, allowing you to correct naming mistakes or reorganize your container naming scheme.
Container names must be unique on the Docker host. Renaming does not modify the container's ID or any other attributes beyond the name itself.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community