chore: updated docker-rmi command readme file (#25832)

added example to remove the list of images having a particular text in it.
This commit is contained in:
Satish Jhanwer
2018-12-07 00:51:50 +05:30
committed by Tom
parent 95cf1a90d0
commit 4e434f1243

View File

@ -18,6 +18,12 @@ You may remove multiple images at the same time. The first thing you will want t
Write Images IDs in the command followed by the spaces between them.
### Remove Specific images using image name
Using `grep` command we can filter the images what we need to remove and then we can pass this output into `docker rmi` command.
`docker rmi -f $(docker images | grep <image name>)`
### Remove all images at once
To remove all images there is a simple command to do that. `docker rmi $(docker images -q)`