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.
How to remove an image in Docker
- Open the terminal or command interface for Docker.
- Type docker rmi IMAGE, replace any placeholders, and run it.
Docker Remove an Image Command
Run docker rmi IMAGE.
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