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.

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