User Tools

Site Tools


ubuntu:docker:remove_dangling_images

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:docker:remove_dangling_images [2019/11/27 01:15] – created peterubuntu: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.  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.  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: 
- 
-<code bash> 
-docker images -f dangling=true 
-</code> 
- 
-To remove dangling images: 
- 
-<code bash> 
-docker rmi $(docker images -f dangling=true -q) 
-</code> 
  
ubuntu/docker/remove_dangling_images.1574817355.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki