LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-rename

change container name identifier

TLDR

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

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
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

SEE ALSO

RESOURCES

Copied to clipboard
Kai