<?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>nakhil96 &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/nakhil96/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Fri, 06 Aug 2021 07:26:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>PKS Post Assessment &#8211; Akhil</title>
		<link>https://www.bestdevops.com/pks-post-assessment-akhil/</link>
		
		<dc:creator><![CDATA[nakhil96]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 07:26:10 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18771</guid>

					<description><![CDATA[List out top 15 commands in Vmware Tanze Application service aka PCF cf authcf logincf create-app-manifestcf apply-manifestcf pushcf helpcf logoutcf [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">List out top 15 commands in Vmware Tanze Application service aka PCF</h2>



<p class="wp-block-paragraph">cf auth<br>cf login<br>cf create-app-manifest<br>cf apply-manifest<br>cf push<br>cf help<br>cf logout<br>cf password<br>cf api<br>cf orgs<br>cf spaces<br>cf org-quota<br>cf buildpacks<br>cf services<br>cf create-service<br>cf create-app<br>cf create-package<br>cf stage-package</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Kubernetes Handbook</title>
		<link>https://www.bestdevops.com/kubernetes-handbook/</link>
		
		<dc:creator><![CDATA[nakhil96]]></dc:creator>
		<pubDate>Fri, 23 Jul 2021 06:01:57 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18074</guid>

					<description><![CDATA[By Akhil Features of Kubernetes Automated rollouts and rollbacks Storage orchestration Self-healing Service discovery and load balancing Batch execution Horizontal [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>By Akhil </p></blockquote>



<h4 class="wp-block-heading">Features of Kubernetes</h4>



<ul class="wp-block-list"><li>Automated rollouts and rollbacks</li><li>Storage orchestration</li><li>Self-healing</li><li>Service discovery and load balancing</li><li>Batch execution</li><li>Horizontal scaling</li><li>Container grouping using pod</li><li>Auto scalability</li><li>DNS management</li><li>Resource monitoring and logging</li></ul>



<h4 class="wp-block-heading">How Kubernetes Works  ?</h4>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="645" height="410" src="https://www.bestdevops.com/wp-content/uploads/2021/07/image-10.png" alt="" class="wp-image-18137" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/image-10.png 645w, https://www.bestdevops.com/wp-content/uploads/2021/07/image-10-300x191.png 300w" sizes="(max-width: 645px) 100vw, 645px" /></figure>



<h4 class="wp-block-heading">What are the components of Master?</h4>



<p class="wp-block-paragraph">Master has 4 components</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ul class="wp-block-list"><li> API Server</li><li>Scheduler</li><li>Controller-Manager</li><li> etcd</li></ul>



<h4 class="wp-block-heading">What are the components of worker node ?</h4>



<ul class="wp-block-list"><li>kubelet</li><li>kube-proxy</li><li>POD which inturn has containers</li></ul>



<h4 class="wp-block-heading">Components of Workstation</h4>
</div></div>



<ul class="wp-block-list"><li>kubectl</li><li>json/yaml file creation</li></ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Akhil Docker LAB</title>
		<link>https://www.bestdevops.com/akhil-docker-lab/</link>
		
		<dc:creator><![CDATA[nakhil96]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 05:21:39 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17814</guid>

					<description><![CDATA[Docker Installation Guide Verify if the docker is installed and running : Assignment 1# Creating an ubuntu container Attaching to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Docker Installation Guide</h2>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># history</span>
<span class="hljs-number">1</span> ifconfig
<span class="hljs-number">2</span> sudo yum install -y yum-utils device-mapper-persistent-data lvm2
<span class="hljs-number">3</span> sudo yum-config-manager --add-repo https:<span class="hljs-comment">//download.docker.com/linux/centos/docker-ce.repo</span>
<span class="hljs-number">4</span> sudo yum-config-manager --add-repo https:<span class="hljs-comment">//download.docker.com/linux/centos/docker-ce.repo</span>
<span class="hljs-number">5</span> sudo yum install –y https:<span class="hljs-comment">//dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</span>
<span class="hljs-number">6</span> sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
<span class="hljs-number">7</span> sudo yum install -y docker-ce
<span class="hljs-number">8</span> sudo yum install docker-ce
<span class="hljs-number">9</span> docker -v
<span class="hljs-number">10</span> sudo systemctl enable docker
<span class="hljs-number">11</span> sudo systemctl start docker
<span class="hljs-number">12</span> docker info
<span class="hljs-number">13</span> sudo docker run hello-world
<span class="hljs-number">14</span> history
&#91;root@localhost ~]<span class="hljs-comment">#</span></code></span></pre>


<h2 class="wp-block-heading">Verify if the docker is installed and running :</h2>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># which docker</span>
/bin/docker
&#91;root@localhost ~]<span class="hljs-comment"># which dockerd</span>
/bin/dockerd
&#91;root@localhost ~]<span class="hljs-comment"># ps -eaf | grep dockerd</span>
root <span class="hljs-number">30370</span> <span class="hljs-number">1</span> <span class="hljs-number">0</span> <span class="hljs-number">01</span>:<span class="hljs-number">14</span> ? <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> /usr/bin/dockerd -H fd:<span class="hljs-comment">// --containerd=/run/containerd/containerd.sock</span>
root <span class="hljs-number">30697</span> <span class="hljs-number">29997</span> <span class="hljs-number">0</span> <span class="hljs-number">01</span>:<span class="hljs-number">19</span> pts/<span class="hljs-number">0</span> <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> grep --color=auto dockerd
&#91;root@localhost ~]<span class="hljs-comment"># ps -eaf | grep docker</span>
root <span class="hljs-number">30370</span> <span class="hljs-number">1</span> <span class="hljs-number">0</span> <span class="hljs-number">01</span>:<span class="hljs-number">14</span> ? <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> /usr/bin/dockerd -H fd:<span class="hljs-comment">// --containerd=/run/containerd/containerd.sock</span>
root <span class="hljs-number">30699</span> <span class="hljs-number">29997</span> <span class="hljs-number">0</span> <span class="hljs-number">01</span>:<span class="hljs-number">19</span> pts/<span class="hljs-number">0</span> <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> grep --color=auto docker
&#91;root@localhost ~]<span class="hljs-comment">#</span></code></span></pre>


<h2 class="wp-block-heading">Assignment 1# Creating an ubuntu container</h2>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># docker pull ubuntu</span>
Using <span class="hljs-keyword">default</span> tag: latest
latest: Pulling from library/ubuntu
Digest: sha256:b3e2e47d016c08b3396b5ebe06ab0b711c34e7f37b98c9d37abe794b71cea0a2
Status: Image is up to date <span class="hljs-keyword">for</span> ubuntu:latest
docker.io/library/ubuntu:latest</code></span></pre>


<h4 class="wp-block-heading">Attaching to the container and installing git and apache in it</h4>


<pre class="wp-block-code"><span><code class="hljs language-php">root@localhost ~]<span class="hljs-comment"># docker ps -a</span>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
<span class="hljs-number">54585</span>f25a19e httpd <span class="hljs-string">"httpd-foreground"</span> <span class="hljs-number">25</span> minutes ago Up <span class="hljs-number">25</span> minutes <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>:<span class="hljs-number">80</span>-&gt;<span class="hljs-number">80</span>/tcp, :::<span class="hljs-number">80</span>-&gt;<span class="hljs-number">80</span>/tcp recursing_cray
<span class="hljs-number">37</span>ac4f644b91 ubuntu <span class="hljs-string">"bash"</span> <span class="hljs-number">27</span> minutes ago Up <span class="hljs-number">27</span> minutes silly_williams
f78f43296a42 httpd <span class="hljs-string">"httpd-foreground"</span> <span class="hljs-number">32</span> minutes ago Up <span class="hljs-number">32</span> minutes <span class="hljs-number">80</span>/tcp reverent_cohen
<span class="hljs-number">15</span>cbcb118557 httpd <span class="hljs-string">"httpd-foreground"</span> <span class="hljs-number">33</span> minutes ago Exited (<span class="hljs-number">0</span>) <span class="hljs-number">32</span> minutes ago boring_hypatia
c1e53557461d ubuntu <span class="hljs-string">"bash"</span> <span class="hljs-number">33</span> minutes ago Exited (<span class="hljs-number">127</span>) <span class="hljs-number">27</span> minutes ago romantic_maxwell
a21cccb03cc8 hello-world <span class="hljs-string">"/hello"</span> <span class="hljs-number">2</span> hours ago Exited (<span class="hljs-number">0</span>) <span class="hljs-number">2</span> hours ago hardcore_hypatia
&#91;root@localhost ~]<span class="hljs-comment"># docker attach 37ac4f644b91</span>
root@<span class="hljs-number">37</span>ac4f644b91:/bin<span class="hljs-comment">#</span></code></span></pre>


<h4 class="wp-block-heading">Now installing git and apache2</h4>


<pre class="wp-block-code"><span><code class="hljs language-php">root@<span class="hljs-number">37</span>ac4f644b91:/bin<span class="hljs-comment"># apt-get install git</span>
Reading package lists… Done
Building dependency tree
Reading state information… Done
git is already the newest version (<span class="hljs-number">1</span>:<span class="hljs-number">2.25</span><span class="hljs-number">.1</span><span class="hljs-number">-1</span>ubuntu3<span class="hljs-number">.1</span>).
<span class="hljs-number">0</span> upgraded, <span class="hljs-number">0</span> newly installed, <span class="hljs-number">0</span> to remove <span class="hljs-keyword">and</span> <span class="hljs-number">2</span> not upgraded.
root@<span class="hljs-number">37</span>ac4f644b91:/bin<span class="hljs-comment">#</span>

root@<span class="hljs-number">37</span>ac4f644b91:/bin<span class="hljs-comment"># apt-get install apache2</span>
Reading package lists… Done
Building dependency tree
Reading state information… Done
apache2 is already the newest version (<span class="hljs-number">2.4</span><span class="hljs-number">.41</span><span class="hljs-number">-4</span>ubuntu3<span class="hljs-number">.4</span>).
<span class="hljs-number">0</span> upgraded, <span class="hljs-number">0</span> newly installed, <span class="hljs-number">0</span> to remove <span class="hljs-keyword">and</span> <span class="hljs-number">2</span> not upgraded.
root@<span class="hljs-number">37</span>ac4f644b91:/bin<span class="hljs-comment">#</span>

Since both are successfully installed now , come out of the container without exiting 

CTRL+P+Q</code></span></pre>


<h4 class="wp-block-heading">Commit the container changes</h4>


<pre class="wp-block-code"><span><code class="hljs language-javascript">
docker commit -m <span class="hljs-string">"ubuntu-git-apache"</span> -a <span class="hljs-string">"Akhil"</span> <span class="hljs-number">37</span>ac4f644b91 ubuntu-git-apache</code></span></pre>


<p class="wp-block-paragraph"><strong>Now see if the new image is created</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-css"><span class="hljs-selector-attr">&#91;root@localhost ~]</span># <span class="hljs-selector-tag">docker</span> <span class="hljs-selector-tag">images</span>
<span class="hljs-selector-tag">REPOSITORY</span> <span class="hljs-selector-tag">TAG</span> <span class="hljs-selector-tag">IMAGE</span> <span class="hljs-selector-tag">ID</span> <span class="hljs-selector-tag">CREATED</span> <span class="hljs-selector-tag">SIZE</span>
<span class="hljs-selector-tag">ubuntu-git-apache</span> <span class="hljs-selector-tag">latest</span> <span class="hljs-selector-tag">e89de62b7ed9</span> 15 <span class="hljs-selector-tag">minutes</span> <span class="hljs-selector-tag">ago</span> 257<span class="hljs-selector-tag">MB</span>
<span class="hljs-selector-tag">ubuntu</span> <span class="hljs-selector-tag">latest</span> <span class="hljs-selector-tag">c29284518f49</span> 7 <span class="hljs-selector-tag">days</span> <span class="hljs-selector-tag">ago</span> 72<span class="hljs-selector-class">.8MB</span>
<span class="hljs-selector-tag">httpd</span> <span class="hljs-selector-tag">latest</span> <span class="hljs-selector-tag">bd29370f84ea</span> 12 <span class="hljs-selector-tag">days</span> <span class="hljs-selector-tag">ago</span> 138<span class="hljs-selector-tag">MB</span>
<span class="hljs-selector-tag">hello-world</span> <span class="hljs-selector-tag">latest</span> <span class="hljs-selector-tag">d1165f221234</span> 4 <span class="hljs-selector-tag">months</span> <span class="hljs-selector-tag">ago</span> 13<span class="hljs-selector-class">.3kB</span></code></span></pre>


<h5 class="wp-block-heading">Verifying if Git is installed from out side of the container</h5>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># docker exec -it 37ac4f644b91 /bin/git --version</span>
git version <span class="hljs-number">2.25</span><span class="hljs-number">.1</span>
&#91;root@localhost ~]<span class="hljs-comment">#</span></code></span></pre>


<h2 class="wp-block-heading">Assignment 2 # Create a httpd container exposed at 8080 port</h2>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># docker pull httpd</span>
Using <span class="hljs-keyword">default</span> tag: latest
latest: Pulling from library/httpd
Digest: sha256:<span class="hljs-number">1</span>fd07d599a519b594b756d2e4e43a72edf7e30542ce646f5eb3328cf3b12341a
Status: Image is up to date <span class="hljs-keyword">for</span> httpd:latest
docker.io/library/httpd:latest
&#91;root@localhost ~]<span class="hljs-comment"># docker run -d httpd</span>
<span class="hljs-number">8311</span>be7b53072d56b6776e7e97b32c45630d22d07ac63167b22fd9ac27ebbe95
&#91;root@localhost ~]<span class="hljs-comment"># docker ps -a</span>
CONTAINER ID   IMAGE         COMMAND              CREATED         STATUS                            PORTS     NAMES
<span class="hljs-number">8311</span>be7b5307   httpd         <span class="hljs-string">"httpd-foreground"</span>   <span class="hljs-number">6</span> seconds ago   Up <span class="hljs-number">5</span> seconds                      <span class="hljs-number">80</span>/tcp    awesome_ptolemy
<span class="hljs-number">54585</span>f25a19e   httpd         <span class="hljs-string">"httpd-foreground"</span>   <span class="hljs-number">11</span> hours ago    Exited (<span class="hljs-number">137</span>) About a minute ago             recursing_cray
<span class="hljs-number">37</span>ac4f644b91   ubuntu        <span class="hljs-string">"bash"</span>               <span class="hljs-number">11</span> hours ago    Up <span class="hljs-number">11</span> hours                                 silly_williams
f78f43296a42   httpd         <span class="hljs-string">"httpd-foreground"</span>   <span class="hljs-number">11</span> hours ago    Exited (<span class="hljs-number">137</span>) About a minute ago             reverent_cohen
<span class="hljs-number">15</span>cbcb118557   httpd         <span class="hljs-string">"httpd-foreground"</span>   <span class="hljs-number">11</span> hours ago    Exited (<span class="hljs-number">0</span>) <span class="hljs-number">11</span> hours ago                     boring_hypatia
c1e53557461d   ubuntu        <span class="hljs-string">"bash"</span>               <span class="hljs-number">11</span> hours ago    Exited (<span class="hljs-number">127</span>) <span class="hljs-number">11</span> hours ago                   romantic_maxwell
a21cccb03cc8   hello-world   <span class="hljs-string">"/hello"</span>             <span class="hljs-number">12</span> hours ago    Exited (<span class="hljs-number">0</span>) <span class="hljs-number">12</span> hours ago                     hardcore_hypatia

&#91;root@localhost ~]<span class="hljs-comment"># docker run -d -p 80:80 httpd</span>
c565adb8c408d4c751a5d66657a5563f5e3ab9fed29dbbc42a32a2a00458237d
&#91;root@localhost ~]<span class="hljs-comment"># docker ps -a</span>
CONTAINER ID   IMAGE         COMMAND              CREATED         STATUS                       PORTS                               NAMES
c565adb8c408   httpd         <span class="hljs-string">"httpd-foreground"</span>   <span class="hljs-number">3</span> seconds ago   Up <span class="hljs-number">3</span> seconds                 <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>:<span class="hljs-number">80</span>-&gt;<span class="hljs-number">80</span>/tcp, :::<span class="hljs-number">80</span>-&gt;<span class="hljs-number">80</span>/tcp   mystifying_mendeleev
<span class="hljs-number">8311</span>be7b5307   httpd         <span class="hljs-string">"httpd-foreground"</span>   <span class="hljs-number">2</span> minutes ago   Up <span class="hljs-number">2</span> minutes                 <span class="hljs-number">80</span>/tcp                              awesome_ptolemy</code></span></pre>


<h5 class="wp-block-heading">Access the url from outside</h5>


<pre class="wp-block-code"><span><code class="hljs language-xml">&#91;root@localhost ~]# curl http://192.168.2.31:80
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>It works!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></span></pre>


<h2 class="wp-block-heading">Assignment 3 #</h2>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<p class="wp-block-paragraph"><strong>Where is the LOCAL Registry and How do i find out???</strong></p>



<p class="wp-block-paragraph">Local registry is something that is present in the local file storage where you can find the images in the local file system;</p>



<p class="wp-block-paragraph">To find it , execute docker info command , you would find an local Root Dir something like &#8220;Docker Root Dir: /var/lib/docker&#8221;,</p>



<p class="wp-block-paragraph">and look for storage driver ; you would see something like &#8220;Storage Driver: overlay2&#8221; , that&#8217;s where you can find the local images</p>



<p class="wp-block-paragraph">/var/lib/docker/image/overlay2/imagedb/content/sha256<br>[root@localhost sha256]# ls -latr<br>total 28<br>drwx&#8212;&#8212;. 3 root root 20 Jul 21 01:14 ..<br>-rw&#8212;&#8212;-. 1 root root 1470 Jul 21 01:15 d1165f2212346b2bab48cb01c1e39ee8ad1be46b87873d9ca7a4e434980a7726<br>-rw&#8212;&#8212;-. 1 root root 1462 Jul 21 02:02 c29284518f497b8c5f49933e74e43ca5221e69c8251e780427f7d12f716625ff<br>-rw&#8212;&#8212;-. 1 root root 8701 Jul 21 02:09 bd29370f84eac6a9fa5373f8ed702f66820e784e5f680b62670af9f851017c96<br>-rw&#8212;&#8212;-. 1 root root 1506 Jul 21 02:35 e89de62b7ed9b52593d2993a9c36184c64b44354cb726fc9ee59158495391605<br>drwx&#8212;&#8212;. 2 root root 4096 Jul 21 02:35 .</p>



<p class="wp-block-paragraph"> </p>



<p class="wp-block-paragraph"><strong>Git is NOT versioning a file. So what?</strong></p>



<p class="wp-block-paragraph">Git is although considered as  a version control system by most of the people , it is actually not a version control system , It merely is providing a way to collaborate to a project in a distributed fashion ; </p>



<p class="wp-block-paragraph">The most basic thing that a version control system should do is store a version of all the changes that have been made to a project and revert to them at any time. Git can save versions of a project. However, what git can not do is let you checkout those versions without blowing up the system.</p>



<p class="wp-block-paragraph">Say your master branch looks like this:</p>



<p class="wp-block-paragraph">A &#8211; B &#8211; C &#8211; D &#8211; E (HEAD)</p>



<p class="wp-block-paragraph">If you realized that you only want to get the contents of commit B, and discard the other changes, you have a slew of terrible options:</p>



<p class="wp-block-paragraph">(1) git reset &#8211;hard B &#8211; This is an AWFUL option. You get a log that looks like this:</p>



<p class="wp-block-paragraph">A &#8211; B (HEAD)</p>



<p class="wp-block-paragraph">But you&#8217;ve just destroyed your entire history. Where&#8217;s C and D if you need them in the future?</p>



<p class="wp-block-paragraph">(2) git revert E; git revert D; git revert C. This option is ridiculous. It makes no sense to manually enter all the commits you want to undo. What if the commit I want to revert to is 10 commits back?</p>



<p class="wp-block-paragraph">(3) git checkout -f B &#8212; . This option doesn&#8217;t handle files created since B. You have to manually delete them!</p>



<p class="wp-block-paragraph">I&#8217;d rather have a file system that has a directory for Version A, Version B, Version C, etc. of my project at this point than use git for version control.</p>



<p class="wp-block-paragraph"> </p>



<p class="wp-block-paragraph"><strong>What is diff between docker pause and docker unpuase?</strong></p>



<p class="wp-block-paragraph">docker pause&nbsp;command suspends all processes in the specified containers. On Linux, this uses the freezer cgroup. Traditionally, when suspending a process the&nbsp;SIGSTOP&nbsp;signal is used, which is observable by the process being suspended</p>



<p class="wp-block-paragraph">docker unpause&nbsp;command un-suspends all processes in the specified containers. On Linux, it does this using the freezer cgroup.</p>



<p class="wp-block-paragraph"><strong>What is significant of docker stop and docker kill?</strong></p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<p class="wp-block-paragraph">The main process inside the container will receive&nbsp;SIGTERM, and after a grace period,&nbsp;SIGKILL. The first signal can be changed with the STOPSIGNAL&nbsp;instruction in the container’s Dockerfile, or the&nbsp;&#8211;stop-signal&nbsp;option to&nbsp;docker run.</p>



<p class="wp-block-paragraph">docker kill;subcommand kills one or more containers. The main process inside the container is sent&nbsp;SIGKILL;signal (default), or the signal that is specified with the;&#8211;signal;option. You can kill a container using the container’s ID, ID-prefix, or name.</p>
</div></div>



<p class="wp-block-paragraph"><strong>Create an image with base &#8211; centos and git must be installed in it.</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost centos]<span class="hljs-comment"># docker build -t centos-git .</span>
Sending build context to Docker daemon  <span class="hljs-number">2.048</span>kB
Step <span class="hljs-number">1</span>/<span class="hljs-number">5</span> : FROM centos:latest
latest: Pulling from library/centos
<span class="hljs-number">7</span>a0437f04f83: Pull complete
  perl-threads-shared<span class="hljs-number">-1.58</span><span class="hljs-number">-2.</span>el8.x86_64

Complete!
Removing intermediate container <span class="hljs-number">37517363</span>cda6
 ---&gt; <span class="hljs-number">631</span>a377aad7d
Step <span class="hljs-number">5</span>/<span class="hljs-number">5</span> : CMD &#91;<span class="hljs-string">"google.com"</span>]
 ---&gt; Running in <span class="hljs-number">82</span>cfeeb696a1
Removing intermediate container <span class="hljs-number">82</span>cfeeb696a1
 ---&gt; <span class="hljs-number">528</span>ca90cd42f
Successfully built <span class="hljs-number">528</span>ca90cd42f

&#91;root@localhost centos]<span class="hljs-comment"># docker images</span>
REPOSITORY                             TAG       IMAGE ID       CREATED              SIZE
centos-git                             latest    <span class="hljs-number">528</span>ca90cd42f   About a minute ago   <span class="hljs-number">641</span>MB
akhilnalumachu/dockerlabjuly21         latest    e89de62b7ed9   <span class="hljs-number">11</span> hours ago         <span class="hljs-number">257</span>MB
akhilnalumachu                         latest    e89de62b7ed9   <span class="hljs-number">11</span> hours ago         <span class="hljs-number">257</span>MB
ubuntu-git-apache                      latest    e89de62b7ed9   <span class="hljs-number">11</span> hours ago         <span class="hljs-number">257</span>MB
akhilnalumachu/dockerdockerlabjuly21   latest    e89de62b7ed9   <span class="hljs-number">11</span> hours ago         <span class="hljs-number">257</span>MB
ubuntu                                 latest    c29284518f49   <span class="hljs-number">7</span> days ago           <span class="hljs-number">72.8</span>MB
httpd                                  latest    bd29370f84ea   <span class="hljs-number">12</span> days ago          <span class="hljs-number">138</span>MB
hello-world                            latest    d1165f221234   <span class="hljs-number">4</span> months ago         <span class="hljs-number">13.3</span>kB
centos                                 latest    <span class="hljs-number">300e315</span>adb2f   <span class="hljs-number">7</span> months ago         <span class="hljs-number">209</span>MB
</code></span></pre></div></div>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
