<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: aswinp.achutham90@gmail.com</title>
    <description>The latest articles on Debug School by aswinp.achutham90@gmail.com (@aswinpachutham90_993).</description>
    <link>https://www.debug.school/aswinpachutham90_993</link>
    <image>
      <url>https://www.debug.school/images/xHEontBsdUYXNa_gH6c-_QUPTrOU4wyKd40-dMcaybM/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzE5NC9mYjM0/OWM2Zi0yOTYzLTQw/OTUtYmU1Ni0yYTRm/YjU3Mzg1Y2EucG5n</url>
      <title>Debug School: aswinp.achutham90@gmail.com</title>
      <link>https://www.debug.school/aswinpachutham90_993</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/aswinpachutham90_993"/>
    <language>en</language>
    <item>
      <title>Write a self notes which cover all the list of resources which you learnt in this session with 1 liner explanation</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Fri, 11 Nov 2022 05:49:00 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/root-cause-fix-for-aa-web-splunk-issue-2jid</link>
      <guid>https://www.debug.school/aswinpachutham90_993/root-cause-fix-for-aa-web-splunk-issue-2jid</guid>
      <description>&lt;p&gt;Below are the list of resources covered:&lt;/p&gt;

&lt;p&gt;POD - Used to create a POD which will host the container in the node. &lt;br&gt;
Replication controller - Used to replicate PODs based on desired number of replicas.&lt;br&gt;
Deployment - Deployment includes Replication Controller along with Versioning , rollback and rollout options.&lt;br&gt;
Services - Services is used to Load balance the traffic between multple nodes based on the selector labels.&lt;br&gt;
NOdePort - Nodeport exposes the port on the Node and forwards it to the respective services.&lt;br&gt;
PV - Used by kubernetes cluster administrator to provision storage volumes for the cluster.&lt;br&gt;
PVC - PVC is used by app team to claim storage for the POD from the PV. These are then mounted to the container using Volume MOunts.&lt;br&gt;
Configmap - Used to store configuration details as key value pairs which is required by container. These are stored in cluster storage.&lt;br&gt;
Secret - Secret are stored in encoded format. They are also stored as key value pairs in cluster storage.&lt;br&gt;
Job - Used to run a command or a job in a container. This resource is killed after the job is completed.&lt;br&gt;
Cronjob - Used to run a command or a job in a cron schedule in a container. This resource will keep running as per the cron schedule.&lt;br&gt;
Daemontset&lt;br&gt;
StatefulSet&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is POD?</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:45:36 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/what-is-pod-cb9</link>
      <guid>https://www.debug.school/aswinpachutham90_993/what-is-pod-cb9</guid>
      <description>&lt;p&gt;POD are atomic entities in kubernetes and is used as a wrapper around the containers separating them from the rest. PODS can host multiple containers listening on different ports as main contaners and side car containers. All resources in the PODS are shared by the containers within the pods. Scheduler deploys resources and containers in a POD.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How Kubernetes works?All components and roles of their components</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:38:45 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/how-kubernetes-worksall-components-and-roles-of-their-components-1748</link>
      <guid>https://www.debug.school/aswinpachutham90_993/how-kubernetes-worksall-components-and-roles-of-their-components-1748</guid>
      <description>&lt;p&gt;A kubernetes cluster contains master nodes and few worker nodes.&lt;br&gt;
Worker nodes hosts the containers/pods and master nodes distributes the workloads to the worker nodes.&lt;br&gt;
To achieve this behavior several components needs to be installed in Master nodes and Worker Nodes.&lt;br&gt;
Components in Master Node:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;apiserver: Api server is used to establish any communication with the kubernetes cluster through REST APIs. Any input to kuberenets cluster is received in JSONs.&lt;/li&gt;
&lt;li&gt;Cluster storage: Its used to store all configuratons and state information of the cluster. It uses etcd to store the data. apiserver will connect with cluster store to fetch these informations.&lt;/li&gt;
&lt;li&gt;Kube Contoller manager- It runs in infinite loop and watches for any changes in the cluster. Status is collected and shared with apiserver thus ensuring apiserver has the latest status. Each component in the cluster has a separate controller. Eg: Node, Endpoint, Namespace etc.&lt;/li&gt;
&lt;li&gt;Kube scheduler - It watches apiserver for any new pods and schedules them in the available nodes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Components in Worker Nodes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Kubelet: It's an agent deployed in worker nodes and communicates with master node through apiserver. Kubelet instantiates pods in the nodes. Any nodes to be added to cluster requires kubelet to be setup.&lt;/li&gt;
&lt;li&gt;Container Engine: Container engine is used for Container management like pulling images and starting and stopping containers. 
3.Kube Proxy: Kube-proxy handles all networking requirements including load balancing across all pods, POD IP addresses.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Why we need Kubernetes?</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:19:30 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/why-we-need-kubernetes-5g2a</link>
      <guid>https://www.debug.school/aswinpachutham90_993/why-we-need-kubernetes-5g2a</guid>
      <description>&lt;p&gt;Kubernetes provides several benefits over traditional infrastructure deployment:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Faster deployment: Applications can be deployed in a matter of seconds.&lt;/li&gt;
&lt;li&gt;Any updates in the code can be moved to the infrastructure quickly updating the container image.&lt;/li&gt;
&lt;li&gt;Disaster recovery is quicker, i.e. in case any nodes are unavailable kuberentes immediately detects the failure and builds up new containers in other working nodes.&lt;/li&gt;
&lt;li&gt;Provides an abstraction to underlying implementations through apiserver calls.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>What is Kubernetes?</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:12:49 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/what-is-kubernetes-p4c</link>
      <guid>https://www.debug.school/aswinpachutham90_993/what-is-kubernetes-p4c</guid>
      <description>&lt;p&gt;Kubernetes is a container orchestration tool. &lt;br&gt;
Containers provides challenges with respect to scalability across multiple hosts. Kubernetes helps to manage multiple docker hosts and load balance between multiple containers with in the same host thus overcoming the network limitations associated with docker scalability. &lt;br&gt;
It helps to deploy the containers in your Infrastructure.&lt;br&gt;
It also helps to provide the necessary resources required to run the container.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>USING 2 ENTRYPOINT Commands in dockerfile</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Tue, 08 Nov 2022 12:36:07 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/using-2-entrypoint-commands-in-dockerfile-3e39</link>
      <guid>https://www.debug.school/aswinpachutham90_993/using-2-entrypoint-commands-in-dockerfile-3e39</guid>
      <description>&lt;p&gt;When you use 2 entrypoint commands the last entrypoint command will be considered.&lt;br&gt;
Eg:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Write docekrfile with 2 entrypoint commands:&lt;br&gt;
FROM ubuntu&lt;br&gt;
MAINTAINER Rajesh Kumar &amp;lt;&amp;lt; &lt;a href="mailto:rajesh@scmgalaxy.com"&gt;rajesh@scmgalaxy.com&lt;/a&gt;&amp;gt;&amp;gt;&lt;br&gt;
ENV DEBIAN_FRONTEND=noninteractive&lt;br&gt;
RUN apt-get update&lt;br&gt;
RUN apt-get -y install tzdata&lt;br&gt;
RUN apt-get install git -y &amp;amp;&amp;amp; apt-get install -yq apache2&lt;br&gt;
CMD echo "Hello world"&lt;br&gt;
ENTRYPOINT ["/bin/echo", "Hello"]&lt;br&gt;
ENTRYPOINT ["ls"]&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Build the docker image using docker file&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;[root@localhost docs]# docker build -t aswin10 -f doc7 .&lt;br&gt;
Sending build context to Docker daemon  9.728kB&lt;br&gt;
Step 1/9 : FROM ubuntu&lt;br&gt;
 ---&amp;gt; a8780b506fa4&lt;br&gt;
Step 2/9 : MAINTAINER Rajesh Kumar &amp;lt;&amp;lt; &lt;a href="mailto:rajesh@scmgalaxy.com"&gt;rajesh@scmgalaxy.com&lt;/a&gt;&amp;gt;&amp;gt;&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; 88f6b6acfa81&lt;br&gt;
Step 3/9 : ENV DEBIAN_FRONTEND=noninteractive&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; c8a76e7a5f98&lt;br&gt;
Step 4/9 : RUN apt-get update&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; 4d9fe31bf152&lt;br&gt;
Step 5/9 : RUN apt-get -y install tzdata&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; 41891c047aab&lt;br&gt;
Step 6/9 : RUN apt-get install git -y &amp;amp;&amp;amp; apt-get install -yq apache2&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; cfaefb036054&lt;br&gt;
Step 7/9 : CMD echo "Hello world"&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; e3a33016f8d3&lt;br&gt;
Step 8/9 : ENTRYPOINT ["/bin/echo", "Hello"]&lt;br&gt;
 ---&amp;gt; Using cache&lt;br&gt;
 ---&amp;gt; a2eacdc1de3e&lt;br&gt;
Step 9/9 : ENTRYPOINT ["ls"]&lt;br&gt;
 ---&amp;gt; Running in 12768c86a79f&lt;br&gt;
Removing intermediate container 12768c86a79f&lt;br&gt;
 ---&amp;gt; 376e50f8e2e0&lt;br&gt;
Successfully built 376e50f8e2e0&lt;br&gt;
Successfully tagged aswin10:latest&lt;br&gt;
[root@localhost docs]# docker images&lt;br&gt;
REPOSITORY                                     TAG       IMAGE ID       CREATED             SIZE&lt;br&gt;
aswin10                                        latest    376e50f8e2e0   11 seconds ago      252MB&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creating the container using the run command:
[root@localhost docs]# docker run -itd aswin10
e908ee7c1647d28048b5bb693e6c590b671ea93d72968cad4c15445e2bcda108
[root@localhost docs]# docekr ps -a
bash: docekr: command not found...
Similar command is: 'docker'
[root@localhost docs]# docker ps -a
CONTAINER ID   IMAGE             COMMAND                   CREATED             STATUS                        PORTS                 NAMES
e908ee7c1647   aswin10           "ls /bin/sh -c 'echo…"    8 seconds ago       Exited (2) 7 seconds ago                            eager_torvalds&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Using 2 CMD commands in dockerfile</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Tue, 08 Nov 2022 12:32:36 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/using-2-cmd-commands-in-dockerfile-4f6l</link>
      <guid>https://www.debug.school/aswinpachutham90_993/using-2-cmd-commands-in-dockerfile-4f6l</guid>
      <description>&lt;p&gt;When you use 2 CMD commands in docker file the last CMD command will be considered.&lt;br&gt;
eg:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write dockerfile with 2 CMD commands:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;FROM ubuntu&lt;br&gt;
MAINTAINER Rajesh Kumar &amp;lt;&amp;lt; &lt;a href="mailto:rajesh@scmgalaxy.com"&gt;rajesh@scmgalaxy.com&lt;/a&gt;&amp;gt;&amp;gt;&lt;br&gt;
ENV DEBIAN_FRONTEND=noninteractive&lt;br&gt;
RUN apt-get update&lt;br&gt;
RUN apt-get -y install tzdata&lt;br&gt;
RUN apt-get install git -y &amp;amp;&amp;amp; apt-get install -yq apache2&lt;br&gt;
CMD echo "Hello world"&lt;br&gt;
CMD ls&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Building the dockerfile:&lt;br&gt;
[root@localhost docs]# docker build -t aswin1 -f doc38 .&lt;br&gt;
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /root/docs/doc38: no such file or directory&lt;br&gt;
[root@localhost docs]# docker build -t aswin1 -f doc8 .&lt;br&gt;
Sending build context to Docker daemon  10.75kB&lt;br&gt;
Step 1/8 : FROM ubuntu&lt;br&gt;
---&amp;gt; a8780b506fa4&lt;br&gt;
Step 2/8 : MAINTAINER Rajesh Kumar &amp;lt;&amp;lt; &lt;a href="mailto:rajesh@scmgalaxy.com"&gt;rajesh@scmgalaxy.com&lt;/a&gt;&amp;gt;&amp;gt;&lt;br&gt;
---&amp;gt; Using cache&lt;br&gt;
---&amp;gt; 88f6b6acfa81&lt;br&gt;
Step 3/8 : ENV DEBIAN_FRONTEND=noninteractive&lt;br&gt;
---&amp;gt; Using cache&lt;br&gt;
---&amp;gt; c8a76e7a5f98&lt;br&gt;
Step 4/8 : RUN apt-get update&lt;br&gt;
---&amp;gt; Using cache&lt;br&gt;
---&amp;gt; 4d9fe31bf152&lt;br&gt;
Step 5/8 : RUN apt-get -y install tzdata&lt;br&gt;
---&amp;gt; Using cache&lt;br&gt;
---&amp;gt; 41891c047aab&lt;br&gt;
Step 6/8 : RUN apt-get install git -y &amp;amp;&amp;amp; apt-get install -yq apache2&lt;br&gt;
---&amp;gt; Using cache&lt;br&gt;
---&amp;gt; cfaefb036054&lt;br&gt;
Step 7/8 : CMD echo "Hello world"&lt;br&gt;
---&amp;gt; Using cache&lt;br&gt;
---&amp;gt; e3a33016f8d3&lt;br&gt;
Step 8/8 : CMD ls&lt;br&gt;
---&amp;gt; Running in 39af03f7ea29&lt;br&gt;
Removing intermediate container 39af03f7ea29&lt;br&gt;
---&amp;gt; 4ec90f2ffbdf&lt;br&gt;
Successfully built 4ec90f2ffbdf&lt;br&gt;
Successfully tagged aswin1:latest&lt;br&gt;
[root@localhost docs]# docker images&lt;br&gt;
REPOSITORY                                     TAG       IMAGE ID       CREATED             SIZE&lt;br&gt;
aswin1                                         latest    4ec90f2ffbdf   10 seconds ago      252MB&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Running docker run command to create the container:&lt;br&gt;
[root@localhost docs]# docker run -itd aswin1&lt;br&gt;
837cffa37f38494cfdc264bb5da82b4f515834d850f2b23b822971230fe03022&lt;br&gt;
[root@localhost docs]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE     COMMAND           CREATED          STATUS                        PORTS     NAMES&lt;br&gt;
837cffa37f38   aswin1    &lt;strong&gt;"/bin/sh -c ls"&lt;/strong&gt;   7 seconds ago    Exited (0) 6 seconds ago                keen_wright&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Diff between docker pause and docker unpause?</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Mon, 07 Nov 2022 13:14:24 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/diff-between-docker-pause-and-docker-unpause-143p</link>
      <guid>https://www.debug.school/aswinpachutham90_993/diff-between-docker-pause-and-docker-unpause-143p</guid>
      <description>&lt;p&gt;Docker pause freezes all running processesin the container.&lt;/p&gt;

&lt;p&gt;EG:&lt;br&gt;
&lt;strong&gt;Docker pause&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;[root@localhost bin]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE         COMMAND              CREATED          STATUS                   PORTS     NAMES&lt;br&gt;
79d6e4829aa7   httpd         "httpd-foreground"   31 seconds ago   Up 3 seconds             80/tcp    aswin&lt;br&gt;
2e41b8634ec5   hello-world   "/hello"             3 hours ago      Exited (0) 3 hours ago             inspiring_hugle&lt;br&gt;
[root@localhost bin]# docker pause aswin&lt;br&gt;
aswin&lt;br&gt;
[root@localhost bin]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE         COMMAND              CREATED          STATUS                   PORTS     NAMES&lt;br&gt;
79d6e4829aa7   httpd         "httpd-foreground"   45 seconds ago   Up 17 seconds (Paused)   80/tcp    aswin&lt;br&gt;
2e41b8634ec5   hello-world   "/hello"             3 hours ago      Exited (0) 3 hours ago             inspiring_hugle&lt;br&gt;
[root@localhost bin]# docker stats&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.00%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.00%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.00%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.00%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
&lt;/code&gt;&lt;strong&gt;Docker Unpause&lt;/strong&gt;&lt;br&gt;
[root@localhost bin]# docker unpause aswin&lt;br&gt;
aswin&lt;br&gt;
[root@localhost bin]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE         COMMAND              CREATED         STATUS                   PORTS     NAMES&lt;br&gt;
79d6e4829aa7   httpd         "httpd-foreground"   4 minutes ago   Up 3 minutes             80/tcp    aswin&lt;br&gt;
2e41b8634ec5   hello-world   "/hello"             3 hours ago     Exited (0) 3 hours ago             inspiring_hugle&lt;br&gt;
[root@localhost bin]# docker stats&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.00%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.00%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.01%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.01%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.01%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
79d6e4829aa7   aswin     0.01%     8.785MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker wait command</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Mon, 07 Nov 2022 12:57:07 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/docker-wait-command-jj6</link>
      <guid>https://www.debug.school/aswinpachutham90_993/docker-wait-command-jj6</guid>
      <description>&lt;p&gt;Docker wait command waits till the container stops and returns the exit codes.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Start a container in terminal 1.&lt;br&gt;
[root@localhost /]# docker run -dit --name=my_container ubuntu bash&lt;br&gt;
6eeb1f587cebdb3c4e9c071b4794a25f17c41c7afa4b1119967eb9d0775875f1&lt;br&gt;
[root@localhost /]# docker wait my_container&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In another terminal stop the container my_container created in terminal1.&lt;br&gt;
[root@localhost ~]# docker stop my_container&lt;br&gt;
my_container&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In terminal 1 you will notice the wait command returns the exit code:&lt;br&gt;
[root@localhost /]# docker wait my_container&lt;br&gt;
137&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Update configuration of one or more containers</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Mon, 07 Nov 2022 12:43:16 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/update-configuration-of-one-or-more-containers-4b7k</link>
      <guid>https://www.debug.school/aswinpachutham90_993/update-configuration-of-one-or-more-containers-4b7k</guid>
      <description>&lt;p&gt;Docker update dynamically updates docker configurations.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;CPU Shares before update:&lt;br&gt;
[root@localhost /]# docker inspect edd512ee70b7&lt;br&gt;
[&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
            "CpuShares": 512,&lt;br&gt;
            "Memory": 0,&lt;br&gt;
Docker update performed on container edd512ee70b7&lt;/p&gt;

&lt;p&gt;[root@localhost /]# docker update --cpu-shares 256 edd512ee70b7&lt;br&gt;
edd512ee70b7&lt;br&gt;
CPU shares after update:&lt;br&gt;
[root@localhost /]# docker inspect edd512ee70b7&lt;br&gt;
            "Dns": [],&lt;br&gt;
            "DnsOptions": [],&lt;br&gt;
            "DnsSearch": [],&lt;br&gt;
            "ExtraHosts": null,&lt;br&gt;
            "GroupAdd": null,&lt;br&gt;
            "IpcMode": "private",&lt;br&gt;
            "Cgroup": "",&lt;br&gt;
            "Links": null,&lt;br&gt;
            "OomScoreAdj": 0,&lt;br&gt;
            "PidMode": "",&lt;br&gt;
            "Privileged": false,&lt;br&gt;
            "PublishAllPorts": false,&lt;br&gt;
            "ReadonlyRootfs": false,&lt;br&gt;
            "SecurityOpt": null,&lt;br&gt;
            "UTSMode": "",&lt;br&gt;
            "UsernsMode": "",&lt;br&gt;
            "ShmSize": 67108864,&lt;br&gt;
            "Runtime": "runc",&lt;br&gt;
            "ConsoleSize": [&lt;br&gt;
                0,&lt;br&gt;
                0&lt;br&gt;
            ],&lt;br&gt;
            "Isolation": "",&lt;br&gt;
            "CpuShares": 256,&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Diff between docker stop and docker kill?</title>
      <dc:creator>aswinp.achutham90@gmail.com</dc:creator>
      <pubDate>Mon, 07 Nov 2022 10:39:58 +0000</pubDate>
      <link>https://www.debug.school/aswinpachutham90_993/diff-between-docker-stop-and-docker-kill-15eh</link>
      <guid>https://www.debug.school/aswinpachutham90_993/diff-between-docker-stop-and-docker-kill-15eh</guid>
      <description>&lt;p&gt;The docker stop command stops the container gracefully and provides a safe way out. If a docker stop command fails to terminate a process within the specified timeout, the Docker issues a kill command implicitly and immediately.&lt;br&gt;
The docker kill command terminates the entry point process abruptly. The docker kill command causes an unsafe exit&lt;/p&gt;

&lt;p&gt;docker kill:&lt;br&gt;
`[root@localhost bin]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE         COMMAND              CREATED         STATUS                   PORTS     NAMES&lt;br&gt;
16a5ba925596   httpd         "httpd-foreground"   8 minutes ago   Up 7 minutes             80/tcp    aswin2&lt;br&gt;
5c8327c8ce40   httpd         "httpd-foreground"   8 minutes ago   Up 2 minutes             80/tcp    aswin1&lt;br&gt;
2e41b8634ec5   hello-world   "/hello"             3 hours ago     Exited (0) 3 hours ago             inspiring_hugle&lt;br&gt;
[root@localhost bin]# docker kill aswin1&lt;br&gt;
aswin1&lt;br&gt;
[root@localhost bin]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE         COMMAND              CREATED         STATUS                       PORTS     NAMES&lt;br&gt;
16a5ba925596   httpd         "httpd-foreground"   8 minutes ago   Up 7 minutes                 80/tcp    aswin2&lt;br&gt;
5c8327c8ce40   httpd         "httpd-foreground"   9 minutes ago   Exited (137) 3 seconds ago             aswin1&lt;/p&gt;

&lt;p&gt;docker stop:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;[root@localhost bin]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE         COMMAND              CREATED         STATUS                   PORTS     NAMES&lt;br&gt;
16a5ba925596   httpd         "httpd-foreground"   3 minutes ago   Up 2 minutes             80/tcp    aswin2&lt;br&gt;
5c8327c8ce40   httpd         "httpd-foreground"   3 minutes ago   Up 53 seconds            80/tcp    aswin1&lt;br&gt;
2e41b8634ec5   hello-world   "/hello"             3 hours ago     Exited (0) 3 hours ago             inspiring_hugle&lt;br&gt;
[root@localhost bin]# docker stop aswin1&lt;br&gt;
aswin1&lt;br&gt;
[root@localhost bin]# docker ps&lt;br&gt;
CONTAINER ID   IMAGE     COMMAND              CREATED         STATUS         PORTS     NAMES&lt;br&gt;
16a5ba925596   httpd     "httpd-foreground"   3 minutes ago   Up 2 minutes   80/tcp    aswin2&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;2e41b8634ec5   hello-world   "/hello"             3 hours ago     Exited (0) 3 hours ago                 inspiring_hugle`&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
