<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 4:35 PM, John Mazzitelli <span dir="ltr">&lt;<a href="mailto:mazz@redhat.com" target="_blank">mazz@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just a little set of tricks that might be helpful to others.<br>
<br>
If you want to clean up your docker:<br>
<br>
* Delete all containers: docker ps -q -a | xargs docker rm<br></blockquote><div> </div><div>you&#39;d probably want &#39;docker stop...&#39; before &#39;docker rm...&#39;<br></div><div>and as Jiri&#39;s file mentions, cleaning networks could be relevant too.<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Delete all images: docker rmi $(docker images --filter dangling=true)<br>
* Another way of removing all images is: docker images -q | xargs docker rmi<br>
* If images have dependent children, forced removal is via the -f flag: docker images -q | xargs docker rmi -f<br>
* Delete untagged images: docker rmi $(docker images | grep &quot;^&lt;none&gt;&quot; | awk &#39;{print $3}&#39;)<br>
______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
</blockquote></div><br></div></div>