<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Docker Command line Reference Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/docker-command-line-reference/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/docker-command-line-reference/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:49:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Docker Command line Reference &#124; Docker Tutorial &#124; Docker Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/docker-commands-line-reference/</link>
					<comments>https://www.scmgalaxy.com/tutorials/docker-commands-line-reference/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 15 Jul 2016 17:50:41 +0000</pubDate>
				<category><![CDATA[CONTAINERS]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Containers]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker Command line]]></category>
		<category><![CDATA[Docker Command line Reference]]></category>
		<category><![CDATA[Docker Guide]]></category>
		<category><![CDATA[Docker Tutorial]]></category>
		<category><![CDATA[Reference]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2016/07/15/docker-commands-line-reference/</guid>

					<description><![CDATA[<p>One liner to stop all of Docker containers: &#62; docker stop $(docker ps -a -q) One liner to remove all [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/docker-commands-line-reference/">Docker Command line Reference | Docker Tutorial | Docker Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3037 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/07/docker-commands-line-refere.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/07/docker-commands-line-refere.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/07/docker-commands-line-refere-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div><strong>One liner to stop all of Docker containers:</strong></div>
<div>&gt; docker stop $(docker ps -a -q)</div>
<div></div>
<div><strong>One liner to remove all of Docker containers:</strong></div>
<div>&gt; docker rm $(docker ps -a -q)</div>
<div>OR</div>
<div>&gt; docker rm $(docker images -q)</div>
<div>OR</div>
<div>&gt; docker rmi $(docker images -q)</div>
<div></div>
<div></div>
<div><strong>In case of error message Get http:///var/run/docker.sock/v1.14/containers/json?all=1: dial unix /var/run/docker.sock: permission denied</strong></div>
<div>&gt; sudo docker rm $(sudo docker ps -a -q)</div>
<div></div>
<div></div>
<div><strong>To only stop exited containers and delete only non-tagged images.:</strong></div>
<div>&gt; docker ps &#8211;filter &#8216;status=Exited&#8217; -a | xargs docker stop</div>
<div>&gt; docker images &#8211;filter &#8220;dangling=true&#8221; -q | xargs docker rmi</div>
<div></div>
<div><strong>Remove all containers that aren&#8217;t currently running:</strong></div>
<div>&gt; docker rm $(docker ps -a -q -f &#8220;status=exited*&#8221;)</div>
<div></div>
<div><strong>if not the volumes will not be delete !!! (like if you are using a mysql docker image) and all the volumes will be orphans !</strong></div>
<div>&gt; sudo docker rm -f -v $(sudo docker ps -a -q)</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/docker-commands-line-reference/">Docker Command line Reference | Docker Tutorial | Docker Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/docker-commands-line-reference/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
