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, ∼2266🔥, 0💬
Popular Posts:
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
How To Open Standard Output as a File Handle in PHP? If you want to open the standard output as a fi...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to use "link" command tool to link objet files? If you have object files previously compiled by ...
What are "*..." and "**..." Wildcard Parameters in Function Definitions? If you want to define a fun...