Difference between revisions of "Docker goodies"

From BITPlan profiwiki Wiki
Jump to navigation Jump to search
(Created page with "=== Remove untagged docker images === http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html <source lang='bash'> docker rmi $(docker images | grep "^<none>" | aw...")
 
Line 1: Line 1:
 
=== Remove untagged docker images ===
 
=== Remove untagged docker images ===
http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html
+
http://stackoverflow.com/a/28377696/1497139
 
<source lang='bash'>
 
<source lang='bash'>
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")  
+
docker rmi -f $(docker images -f "dangling=true" -q)
 
</source>
 
</source>

Revision as of 03:40, 23 October 2015

Remove untagged docker images

http://stackoverflow.com/a/28377696/1497139

docker rmi -f $(docker images -f "dangling=true" -q)