<?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 containers Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/docker-containers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/docker-containers/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:07:02 +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>Lifecycle of Docker Containers</title>
		<link>https://www.scmgalaxy.com/tutorials/lifecycle-of-docker-containers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/lifecycle-of-docker-containers/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 10 Jul 2018 12:46:22 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[docker containers]]></category>
		<category><![CDATA[lifecycle]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5076</guid>

					<description><![CDATA[<p>We need to carefully understand the life cycle of Docker containes. There are following images which depicts the the right [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/lifecycle-of-docker-containers/">Lifecycle of Docker Containers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-5091" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers.png" alt="" width="600" height="315" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-300x158.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>We need to carefully understand the life cycle of Docker containes. There are following images which depicts the the right phases of docker containers.</p>
<p><strong>Phase of Docker Containers</strong></p>
<ul>
<li>Create -&gt; Destroy</li>
<li>Create -&gt; Start -&gt; Stopped -&gt; Destroy</li>
<li>Create -&gt; Start -&gt; Pause -&gt; Unpause</li>
<li>Create -&gt; Start -&gt; Restart</li>
</ul>
<p><strong>Image flow of Simple Docker Container Lifecycle</strong></p>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-simple.jpg"><img decoding="async" class="aligncenter size-full wp-image-5077" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-simple.jpg" alt="" width="638" height="497" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-simple.jpg 638w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-simple-300x234.jpg 300w" sizes="(max-width: 638px) 100vw, 638px" /></a></p>
<p><strong>Image flow of Detailed Docker Container Lifecycle</strong></p>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase.png"><img decoding="async" class="aligncenter size-full wp-image-5078" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase.png" alt="" width="1129" height="575" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase.png 1129w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-300x153.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-768x391.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-1024x522.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/docker-containers-lifecycle-phase-660x336.png 660w" sizes="(max-width: 1129px) 100vw, 1129px" /></a></p>
<p>&nbsp;</p>
<p>Image Source and Credits: http://docker-saigon.github.io/post/Docker-Internals/</p>
<p><strong>Create container</strong><br />
$ docker create &#8211;name ubuntu-cont ubuntu</p>
<p><strong>Run docker container</strong><br />
$ docker run -itd ubuntu<br />
$ docker run -itd &#8211;name ubuntu-cont ubuntu</p>
<p><strong>Pause container</strong><br />
$ docker pause &lt;container-id/name&gt;</p>
<p><strong>Unpause container</strong><br />
$ docker unpause &lt;container-id/name&gt;</p>
<p><strong>Start container</strong><br />
$ docker start &lt;container-id/name&gt;</p>
<p><strong>Stop container</strong><br />
$ docker stop &lt;container-id/name&gt;</p>
<p><strong>Restart container</strong><br />
$ docker restart &lt;container-id/name&gt;</p>
<p><strong>Kill container</strong><br />
$ docker kill &lt;container-id/name&gt;</p>
<p><strong>Destroy container</strong><br />
$ docker rm &lt;container-id/name&gt;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/lifecycle-of-docker-containers/">Lifecycle of Docker Containers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/lifecycle-of-docker-containers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
