docker image rm

Command Name: 

docker image rm

Description:

Remove one or More images

Syntax:

easywhatis$ docker image rm --help
Usage: docker image rm [OPTIONS] IMAGE [IMAGE...]
Remove one or more images
Aliases:
  rm, rmi, remove
Options:
  -f, --force      Force removal of the image
      --no-prune   Do not delete untagged parents
easywhatis$

Example:

easywhatis$ docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
tomcat              latest              e36064f7c6f0        4 days ago          528MB
busybox             latest              83aa35aa1c79        3 weeks ago         1.22MB
easywhatis$ docker image rm e36064f7c6f0
Untagged: tomcat:latest
Untagged: tomcat@sha256:c0ba286d9903006423ff4e2818845f1cc4046aa829bbfbc9b96f887423cd9f47
Deleted: sha256:e36064f7c6f01c641d0ec1fee4711e5477013ebef67c4b819d37e03cbeae6372
Deleted: sha256:3ef05b496713ceaded2026864cc91ff154a04c2935ea008e00701cc5c8b9e75c
Deleted: sha256:641fd14f37214a467aab0d8a3cf8f889f99526b53355bb9552686c6822b0645a
Deleted: sha256:452c44dc3dc2dd0f4a34f0cc2cb3738d34580d77fbcaab77e0776568bc9a0339
Deleted: sha256:74adf7e6eb09fcc0272821be48432eb723ac6fff4980f1fe928fea89f3534ff1
Deleted: sha256:7c95cbd398014e5c9f83e6facd8da625d3051d7563773e16d340f0e01b80bfbe
Deleted: sha256:1d9c356a174917497a58862b51996c9c47e8252dfe23d8988b7160cd0f75ff8e
Deleted: sha256:271f4a1d79ed510de83e0a5c50df129ea6d19ff9c6c1774f22775605396d3c9c
Deleted: sha256:67075ef9c33e810eca54992cb0e89ecf66d4b8a3b243c997c1196925f3e74afc
Deleted: sha256:da8de0e4d99086ce422a7a80507b3298a026c322d2c21b4d9ab2388fbb4cf3c1
Deleted: sha256:24efcd549ab5e1786f787e7dc03590dcb222e7e95242524d97fedeb05393e891
easywhatis$ docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             latest              83aa35aa1c79        3 weeks ago         1.22MB
easywhatis$