docker-rename

change container name identifier

TLDR

Rename a container
$ docker rename [old_name] [new_name]

SYNOPSIS

docker rename container newname_

DESCRIPTION

docker rename renames an existing container. Works on both running and stopped containers. Useful for giving meaningful names to containers created without --name. Container names must be unique within the Docker host and follow naming conventions (alphanumeric characters, underscores, periods, and hyphens).

INSTALL

sudo apt install docker-cli
sudo dnf install docker-cli
sudo pacman -S docker
sudo apk add docker-cli
sudo zypper install docker
brew install docker
nix profile install nixpkgs#docker

SEE ALSO

docker-container-rename(1), docker-run(1)

RESOURCES

Source code · Documentation