Tools, FAQ, Tutorials:
"docker image rm ..." - Remove All Images
How to remove all images from the Docker Engine with "docker image rm ..." command?
✍: FYIcenter.com
If you have created many images on the Docker Engine
and you want to remove them all,
you can use the "docker image rm ..." command with a sub-command to specify
the list of all image IDs.
1. Run "docker image list --all --quiet" to get a list of all image IDs.
fyicenter$ docker image list --all --quiet 24fc134f1a5a 660f6e09a539 e744e7509b13 07c676e97a34 81c5c69c5fcd
2. Embed the above command into the "docker image rm" command to remove them all.
fyicenter$ docker image rm $(docker image list --all --quiet) 24fc134f1a5a 660f6e09a539 e744e7509b13 07c676e97a34 81c5c69c5fcd
2. Try to list all images. There should be no image left.
fyicenter$ docker image list --all
⇒ "docker image pull" - Pull Image
2021-10-02, ∼2398🔥, 0💬
Popular Posts:
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...
What properties and functions are supported on requests.models.Response objects? "requests" module s...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...