<?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: Tomar Singh</title>
    <description>The latest articles on Debug School by Tomar Singh (@tmrchauhan_429).</description>
    <link>https://www.debug.school/tmrchauhan_429</link>
    <image>
      <url>https://www.debug.school/images/qY6TXtmOupbG0832-noQtxzQmEB0iZvqkfZb4vo6680/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzIwMy8yMmQ3/ZDc5Ny1jODVmLTQy/ZDMtYTUxYy0wN2M2/MzQwY2M1YTcucG5n</url>
      <title>Debug School: Tomar Singh</title>
      <link>https://www.debug.school/tmrchauhan_429</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/tmrchauhan_429"/>
    <language>en</language>
    <item>
      <title>Docker tmpfs volume by Tomar</title>
      <dc:creator>Tomar Singh</dc:creator>
      <pubDate>Wed, 16 Nov 2022 05:15:00 +0000</pubDate>
      <link>https://www.debug.school/tmrchauhan_429/docker-tmpfs-volume-by-tomar-1fm5</link>
      <guid>https://www.debug.school/tmrchauhan_429/docker-tmpfs-volume-by-tomar-1fm5</guid>
      <description>&lt;p&gt;&lt;strong&gt;How can we store container data in memory using docker volume&lt;/strong&gt;&lt;br&gt;
We use docker tmpfs volume to store container data in host's memory. As we are storing this in memory it will be volatile. Also we can not attach this volume with some other container because we don't know the Physical location in this case.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;em&gt;docker run -itd --name tmpfstest --tmpfs /var/tmpfs ubuntu&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now if we inspect this container, we will get following in output:&lt;br&gt;
"Tmpfs": {&lt;br&gt;
                "/var/tmpfs": ""&lt;br&gt;
         }&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker image by Tomar</title>
      <dc:creator>Tomar Singh</dc:creator>
      <pubDate>Tue, 15 Nov 2022 06:44:00 +0000</pubDate>
      <link>https://www.debug.school/tmrchauhan_429/docker-image-by-tomar-4ijj</link>
      <guid>https://www.debug.school/tmrchauhan_429/docker-image-by-tomar-4ijj</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is a Docker image. Explain in 10 points.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker image consists multiple file system. &lt;/li&gt;
&lt;li&gt;It is a name inside repository and this name will be linked to docker Layer ID.&lt;/li&gt;
&lt;li&gt;This Layer Id is used to recognize the parents for that layer and so on.&lt;/li&gt;
&lt;li&gt;Docker images will have multiple layers. The rootfile System or base image at the bottom layer and then there will be multiple layers on top it for software and applications. &lt;/li&gt;
&lt;li&gt;When a docker image is pulled these data layers will stored in docker locally (inside overlay2 - again depends on the filesystem type), and meta layers will be there in images directory. &lt;/li&gt;
&lt;li&gt;When we create a container using this image all layers will be merged and mounted to the user attached with container. &lt;/li&gt;
&lt;li&gt;If are creating any new file in container, it will be stored at two places diff and merge.&lt;/li&gt;
&lt;li&gt;mount for an image is conmbination of diff and image layers.&lt;/li&gt;
&lt;li&gt;when you stop a container the merge directory go away.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Docker Update and wait by Tomar</title>
      <dc:creator>Tomar Singh</dc:creator>
      <pubDate>Tue, 15 Nov 2022 05:15:40 +0000</pubDate>
      <link>https://www.debug.school/tmrchauhan_429/docker-update-and-wait-by-tomar-1a5h</link>
      <guid>https://www.debug.school/tmrchauhan_429/docker-update-and-wait-by-tomar-1a5h</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is the use of "docker update"?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker update command is used to update the container resources or configuration at runtime. It can change cpu or memory initial configuration like this:
docker update -m 512m &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This command can help us in scenarios where more resources require for a container Or if container is under performing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the use of "docker wait"?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;docker wait command is used to wait until the command executes (until the mentioned container stops).
For example if a container is going to stop wait command will block your terminal for any operation until it stops successfully.
-&amp;gt; docker wait &lt;/li&gt;
&lt;li&gt;this will block the terminal. Now if go to the other terminal and stops this container, docker wait command will return 0 and terminal will be available for further use.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Docker Lab Assignment - Tomar</title>
      <dc:creator>Tomar Singh</dc:creator>
      <pubDate>Mon, 14 Nov 2022 10:11:37 +0000</pubDate>
      <link>https://www.debug.school/tmrchauhan_429/docker-lab-assignment-tomar-80e</link>
      <guid>https://www.debug.school/tmrchauhan_429/docker-lab-assignment-tomar-80e</guid>
      <description>&lt;p&gt;&lt;strong&gt;what is the diff between docker pause and docker unpause?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;docker pause will stop the processes inside the specified container. Its not going to use resources (cpu ,memory), On the other hand unpause will again resume the process.
After pausing a container if you do docker stats, it will show that cpu has 0% of utilization. When we unpause it, cpu usage shows 0.1% of usage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is the diff between docker stop and docker kill?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;docker stop commands will not stop processes immediately, it will gracefully handle it. docker stop SIGTERM command.
Whereas docker kill will suspends the process immediately by sending SIGKILL command, thats why we see zero (0) for killed container.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Docker Summary by Tomar</title>
      <dc:creator>Tomar Singh</dc:creator>
      <pubDate>Mon, 14 Nov 2022 07:26:33 +0000</pubDate>
      <link>https://www.debug.school/tmrchauhan_429/docker-summary-by-tomar-3pm1</link>
      <guid>https://www.debug.school/tmrchauhan_429/docker-summary-by-tomar-3pm1</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Docker?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker is containerization management tool which allow you to perform certain operations on container like - create, stop, pause etc. It is a tool which talks to kernel using various components.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why Docker?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker is a way to interact with OS Kernel for performing various container operation. Containers are important to run multiple instance of same image.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is Container?&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is not possible to run the same application multiple times (for ex running 3 apache instances) in PC environment. To overcome this issue we have something called Container. Containers run your application by sharing the resources and have its own Users, PID, network tree and file system.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Docker workflow?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker client -&amp;gt; Rest APIs -&amp;gt; Docker Server (server checks the required image if not there then connects to registry to get it).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How container created?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Containers are created by OS kernel on demand by Docker. Docker gives instructions to kernel to creates Users, PID, Network tree, File system and then connect the created user to these components.&lt;/li&gt;
&lt;/ul&gt;

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