ubuntu:docker:remove_dangling_images
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:docker:remove_dangling_images [2019/11/27 01:16] – peter | ubuntu:docker:remove_dangling_images [2020/04/15 22:01] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Docker - Remove dangling images ====== | ||
- | |||
- | Docker images consist of multiple layers. | ||
- | |||
- | Dangling images are layers that have no relationship to any tagged images. | ||
- | |||
- | To list dangling images: | ||
- | |||
- | <code bash> | ||
- | docker images -f dangling=true | ||
- | </ | ||
- | |||
- | To remove dangling images: | ||
- | |||
- | <code bash> | ||
- | docker rmi $(docker images -f dangling=true -q) | ||
- | </ | ||
ubuntu/docker/remove_dangling_images.1574817375.txt.gz · Last modified: 2020/07/15 09:30 (external edit)