Command

Docker Tag an Image Command

The Docker command to tag an image is docker tag SOURCE TARGET.

Quick Answer

Command
docker tag SOURCE TARGET
DockerCommand

Tag an Image

Type this command
docker tag SOURCE TARGET

Gives an image another name or version, ready for pushing.

Learn More

How to tag an image in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker tag SOURCE TARGET, replace any placeholders, and run it.

Docker Tag an Image Command

Run docker tag SOURCE TARGET.

Related Commands

Frequently asked questions

What is the Docker command to tag an image?

Run docker tag SOURCE TARGET.

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