docker:images:remove_dangling_images
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:images:remove_dangling_images [2020/07/15 09:30] – external edit 127.0.0.1 | docker:images:remove_dangling_images [2022/09/19 14:15] (current) – peter | ||
---|---|---|---|
Line 6: | Line 6: | ||
* They no longer serve a purpose and consume disk space. | * They no longer serve a purpose and consume disk space. | ||
- | * They can be located by adding the filter flag, -f with a value of dangling=true to the docker images command. | + | * They can be located by adding the filter flag, **-f** with a value of **dangling=true** to the docker images command. |
- | * When you're sure you want to delete them, you can add the -q flag, then pass their ID to docker rmi: | + | * When you're sure you want to delete them, you can add the **-q** flag, then pass their ID to docker rmi: |
+ | |||
+ | ---- | ||
To list dangling images: | To list dangling images: | ||
Line 14: | Line 16: | ||
docker images -f dangling=true | docker images -f dangling=true | ||
</ | </ | ||
+ | |||
+ | ---- | ||
To remove dangling images: | To remove dangling images: |
docker/images/remove_dangling_images.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1