docker rename

Estimated reading time: 1 minute

Edge only: This is the CLI reference for Docker CE Edge versions. Some of these options may not be available to Docker CE stable or Docker EE. You can view the stable version of this CLI reference or learn about Docker CE Edge.


Rename a container


docker rename CONTAINER NEW_NAME

Parent command

dockerThe base command for the Docker CLI.

Extended description

The docker rename command renames a container.


$ docker rename my_container my_new_container