DockerCLI/docs/reference/commandline/rename.md

435 B

title description keywords
rename The rename command description and usage rename, docker, container

rename

Usage:  docker rename CONTAINER NEW_NAME

Rename a container

Aliases:
  docker container rename, docker rename

Options:
      --help   Print usage

Description

The docker rename command renames a container.

Examples

$ docker rename my_container my_new_container