Difference between revisions of "Docker: Prune Images"

From Glitchdata
Jump to navigation Jump to search
(Created page with " <pre> $ docker image prune </pre> Category: Docker Usage")
 
Line 3: Line 3:
  
 
<pre>
 
<pre>
 +
# only removes expired images
 
$ docker image prune
 
$ docker image prune
 +
</pre>
  
 +
<pre>
 +
# removes all images
 +
$ docker rmi $(docker images -a -q)
 
</pre>
 
</pre>
  

Revision as of 19:50, 12 March 2019


# only removes expired images
$ docker image prune
# removes all images
$ docker rmi $(docker images -a -q)