<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[mackiie09]]></title><description><![CDATA[mackiie09]]></description><link>https://mackiie09.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 01 Sep 2026 10:23:34 GMT</lastBuildDate><atom:link href="https://mackiie09.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Docker Containerization Tool and Its Commands.]]></title><description><![CDATA[Docker Containerization
Docker Containerization is the technology that was launched in 2013 by a company called Dotcloud as an open source software development platform.
Docker containers are one of the components of Docker. Containers are the abstra...]]></description><link>https://mackiie09.hashnode.dev/docker-containerization-tool-and-its-commands</link><guid isPermaLink="true">https://mackiie09.hashnode.dev/docker-containerization-tool-and-its-commands</guid><category><![CDATA[Docker]]></category><category><![CDATA[docker images]]></category><category><![CDATA[Devops]]></category><dc:creator><![CDATA[Muskaan Madan]]></dc:creator><pubDate>Tue, 24 Nov 2020 11:43:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1606218185645/h-ZvVxknF.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="docker-containerization">Docker Containerization</h1>
<p>Docker Containerization is the technology that was launched in 2013 by a company called <strong>Dotcloud</strong> as an open source software development platform.</p>
<p><strong>Docker containers</strong> are one of the components of Docker. Containers are the abstraction at the app layer that bundles code and dependencies together so to make sure that your application works seamlessly in any environment which can be developed or test or production. Containers are another form of <strong>Virtualization</strong>. </p>
<h2 id="advantages-of-docker">Advantages of Docker –</h2>
<p>Docker has been very popular nowadays, and therefore it has advantages over virtual machines.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606067846439/Trhwr1yO5.png" alt="VM-vs-Docker-What-is-Docker-Container-Edureka-1.png" /></p>
<p><strong>1. Size:</strong> The parameter which compare them on their resource they utilize.</p>
<p><strong>2. Startup:</strong> This parameter compare them on the basis of their boot time.</p>
<p><strong>3. Integration:</strong> This parameter will compare on their ability to integrate with other tools with ease.</p>
<h1 id="some-docker-commands">Some Docker Commands</h1>
<p><strong>1. docker images</strong> - This command lists all the stored images locally.</p>
<p><strong>Command-</strong></p>
<pre><code><span class="hljs-attribute">docker</span> images
</code></pre><p><strong>Output-</strong>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606152173640/J-EgyTzVT.png" alt="docker images.png" /></p>
<p><strong>2. docker search</strong> - This command is used to search the particular image from the dockerHub using command line.</p>
<p><strong>Command-</strong></p>
<pre><code>docker <span class="hljs-keyword">search</span> &lt;image_name&gt;
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606152437962/ZO1Db2gOj.png" alt="docker search.png" /></p>
<p><strong>3. docker pull</strong> -This command is used to pull the particular image from the dockerHub to our local machine.</p>
<p><strong>Command-</strong></p>
<pre><code>docker pull <span class="hljs-tag">&lt;<span class="hljs-name">image_name</span>&gt;</span>
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606152601522/v5DhShwuj.png" alt="docker pull.png" /></p>
<p><strong>4. docker run</strong> - This command is used to create a container of a specified image.</p>
<p><strong>Command-</strong></p>
<pre><code>docker run -d <span class="hljs-tag">&lt;<span class="hljs-name">image_name</span>&gt;</span>
</code></pre><p>This command helps to run container in background.</p>
<p><strong>Output-</strong>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606152908563/SGz05ZkMC.png" alt="docker run -d .png" /></p>
<p><strong>Command-</strong></p>
<pre><code>docker run -it <span class="hljs-tag">&lt;<span class="hljs-name">image_name</span>&gt;</span>
</code></pre><p>This command helps to run container that allows interaction with the terminal of the specified image.</p>
<p><strong>Output-</strong>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606153038385/JCJEMIPS2.png" alt="docker run -it.png" /></p>
<p><strong>Command-</strong></p>
<pre><code>docker run -p <span class="hljs-tag">&lt;<span class="hljs-name">host_port</span>&gt;</span>:<span class="hljs-tag">&lt;<span class="hljs-name">container_port</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">image</span>&gt;</span>
</code></pre><p>This command publishes the port.
<strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606191228887/KgIMWmkJS.png" alt="docker run -p.png" /></p>
<p><strong>Command-</strong></p>
<pre><code>docker run --name <span class="hljs-tag">&lt;<span class="hljs-name">container_name</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">image_name</span>&gt;</span> COMMAND
</code></pre><p>This command helps to assign names to your docker containers.</p>
<p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216634936/WM7f7ir7B.png" alt="docker run --name.png" /></p>
<p><strong>5. docker ps</strong> - This command lists all the running containers.</p>
<p><strong>Command-</strong></p>
<pre><code><span class="hljs-attribute">docker</span> ps
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606215168094/pcO4H5GH6.png" alt="docker ps.png" /></p>
<p><strong>6. docker ps -a</strong> - This command is used to show all the running / non-running or all existed containers.</p>
<p><strong>Command-</strong></p>
<pre><code><span class="hljs-attribute">docker</span> ps -a
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606215356213/IpFllLoRr.png" alt="docker ps -a.png" /></p>
<p><strong>7. docker inspect</strong> - This command provides detailed information on constructs controlled by Docker.</p>
<p><strong>Command-</strong></p>
<pre><code>docker inspect &lt;<span class="hljs-keyword">object</span>&gt;
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216544228/7zti-hqbZ.png" alt="docker inspect.png" /></p>
<p><strong>8. docker start</strong> - This command is used to start the stopped container that are already existed.</p>
<p><strong>Command-</strong></p>
<pre><code>docker <span class="hljs-keyword">start</span> &lt;container_name&gt;
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606217258567/GtQ8OXGbJ.png" alt="docker start.png" /></p>
<p><strong>9. docker stop</strong> - This command is used to stop the current running containers.</p>
<p><strong>Command-</strong></p>
<pre><code>docker <span class="hljs-keyword">stop</span> &lt;container_name&gt;
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606217375393/yeI7dbBaA.png" alt="docker stop.png" /></p>
<p><strong>10. docker rm</strong> - This command is used to delete the stopped container.</p>
<p><strong>Command-</strong></p>
<pre><code>docker rm <span class="hljs-tag">&lt;<span class="hljs-name">container_id</span>&gt;</span>
</code></pre><p><strong>Output-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606217617428/3w0XJNKYp.png" alt="docker rm.png" /></p>
<p>In the above picture we can see that the after running <strong>docker rm</strong> command, we cannot find the container named <strong>mackiie_cool</strong>. This means that the container has been deleted.</p>
<h2 id="conclusion">Conclusion</h2>
<p>These were the few commands which can help you to get started with Docker and can motivate you to explore more about docker and docker containers.</p>
<p>###Happy Learning !!</p>
]]></content:encoded></item></channel></rss>