docker:images:remove_dangling_images
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
docker:images:remove_dangling_images [2022/09/19 14:14] – peter | docker:images:remove_dangling_images [2022/09/19 14:15] (current) – peter | ||
---|---|---|---|
Line 8: | Line 8: | ||
* 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.1663596889.txt.gz · Last modified: 2022/09/19 14:14 by peter