docker rename

Estimated reading time: 1 minute


Rename a container


docker rename CONTAINER NEW_NAME

Parent command

Command Description
docker The base command for the Docker CLI.

Extended description

The docker rename command renames a container.


$ docker rename my_container my_new_container
chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support