docker image rm
Deletes an image from your machine.
In more detail
Docker refuses while a container, even a stopped one, still uses the image. Layers shared with other images stay. docker image prune removes unused images in bulk.
Related terms
- docker rm — Deletes a stopped container and its writable layer; the image stays.
- docker image ls — Lists the images stored on your machine with their repository, tag, ID and size.
- layer — One read-only slice of an image that records the files a single build step added, changed or deleted.
Taught in
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers
- Authenticate, Tag, Push And Pull From A Registry — Docker Architecture & Production Containers
- Minimal Bases, Non Root Users And Smaller Images — Docker Architecture & Production Containers
- Scan, Patch And Inspect The Software Supply Chain — Docker Architecture & Production Containers
- Define The Service And Database With Compose — Docker Architecture & Production Containers
- Health Checks, Dependencies And Reliable Startup — Docker Architecture & Production Containers
- Development Overrides, Hot Reloading And Debuggers — Docker Architecture & Production Containers
- Integration Tests, Test Data And Compose Cleanup — Docker Architecture & Production Containers
- Three Names, One Image: Listing, Formatting, Tagging And Pruning — Docker Certified Associate (DCA) Exam Prep
- Our Own Registry: Deploy, Push, Pull, Search And Delete — Docker Certified Associate (DCA) Exam Prep
- Images Sprint: Eight Questions On Builds, Tags And Registries — Docker Certified Associate (DCA) Exam Prep