Command

Docker Rename a Container Command

The Docker command to rename a container is docker rename OLD NEW.

Quick Answer

Command
docker rename OLD NEW
DockerCommand

Rename a Container

Type this command
docker rename OLD NEW

Changes the name of a container.

Learn More

How to rename a container in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker rename OLD NEW, replace any placeholders, and run it.

Docker Rename a Container Command

Run docker rename OLD NEW.

Related Commands

Frequently asked questions

What is the Docker command to rename a container?

Run docker rename OLD NEW.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify