W3cubDocs

/Docker 19

docker rename

Description

Rename a container

Usage

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.

Examples

$ docker rename my_container my_new_container

© 2019 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/engine/reference/commandline/rename/