LinuxCommandLibrary

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).

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community