docker-container-rename
rename an existing container
TLDR
Rename a container
$ docker container rename [old_name] [new_name]
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
docker-rename(1), docker-container(1)
