Command

Docker Remove an Image Command

The Docker command to remove an image is docker rmi IMAGE.

Quick Answer

Command
docker rmi IMAGE
DockerCommand

Remove an Image

Type this command
docker rmi IMAGE

Deletes an image from your machine.

Learn More

How to remove an image in Docker

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

Docker Remove an Image Command

Run docker rmi IMAGE.

Related Commands

Frequently asked questions

What is the Docker command to remove an image?

Run docker rmi IMAGE.

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