Tools, FAQ, Tutorials:
"docker image rm" - Remove Image
How to remove an image from the local repository with "docker image rm" command?
✍: FYIcenter.com
If an image is no longer needed, you can remove it from the local repository to save space using the "docker image rm" command.
1. Run "docker image list" command. You see the image, hello-world.
fyicenter$ docker image list REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 4 months ago 1.84kB ...
2. Remove the image by its name.
fyicenter$ docker image rm hello-world Error response from daemon: conflict: unable to remove repository reference "hello-world" (must force) - container 96ce071457fc is using its referenced image fce289e99eb9
3. If you get the above error, you can remove the container first. And try it again.
fyicenter$ docker container rm 96ce071457fc 96ce071457fc fyicenter$ docker image rm hello-world Untagged: hello-world:latest Untagged: hello-world@sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc Deleted: sha256:fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e Deleted: sha256:af0b15c8625bb1938f1d7b17081031f649fd14e6b233688eea3c5483994a66a3
⇒ "docker image rm ..." - Remove All Images
2019-03-21, 1111🔥, 0💬
Popular Posts:
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a...
How to validate the id_token signature received from Azure AD v2.0 authentication response? You can ...
How to attach console to a Running Container using the "docker container exec" command? I want to ge...