docker image rm

Estimated reading time: 1 minute


Remove one or more images


docker image rm [OPTIONS] IMAGE [IMAGE...]


Name, shorthandDefaultDescription
--force , -fForce removal of the image
--no-pruneDo not delete untagged parents

Parent command

docker imageManage images
docker image buildBuild an image from a Dockerfile
docker image historyShow the history of an image
docker image importImport the contents from a tarball to create a filesystem image
docker image inspectDisplay detailed information on one or more images
docker image loadLoad an image from a tar archive or STDIN
docker image lsList images
docker image pruneRemove unused images
docker image pullPull an image or a repository from a registry
docker image pushPush an image or a repository to a registry
docker image rmRemove one or more images
docker image saveSave one or more images to a tar archive (streamed to STDOUT by default)
docker image tagCreate a tag TARGET_IMAGE that refers to SOURCE_IMAGE