<?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: Mohit Dubey</title>
    <description>The latest articles on Debug School by Mohit Dubey (@mailtodubeymohit).</description>
    <link>https://www.debug.school/mailtodubeymohit</link>
    <image>
      <url>https://www.debug.school/images/I-Lh24yKBblZP-iVUr0d90GKiVyDxBzXjVD_pxYGhi8/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzIwOS83YmVl/NGJiYS04MDRlLTQx/ZTMtYjBlNC0yOGZj/MzkwMWM2NjQucG5n</url>
      <title>Debug School: Mohit Dubey</title>
      <link>https://www.debug.school/mailtodubeymohit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/mailtodubeymohit"/>
    <language>en</language>
    <item>
      <title>List of Git Commands</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Fri, 18 Nov 2022 07:28:00 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/list-of-git-commands-2b1a</link>
      <guid>https://www.debug.school/mailtodubeymohit/list-of-git-commands-2b1a</guid>
      <description>&lt;p&gt;&lt;strong&gt;git init:&lt;/strong&gt; To initialize a local repository to be tracked by GIT&lt;br&gt;
&lt;strong&gt;git clone:&lt;/strong&gt; to clone the remote repository to local&lt;br&gt;
&lt;strong&gt;git pull:&lt;/strong&gt; to pull the changes remote repository to local(working dir)&lt;br&gt;
** git clean** : Delete a file from git initialized repo&lt;br&gt;
&lt;strong&gt;git add:&lt;/strong&gt; to move the file to the staging area.&lt;br&gt;
&lt;strong&gt;git commit:&lt;/strong&gt; to commit the code to the local repository&lt;br&gt;
&lt;strong&gt;git push:&lt;/strong&gt; to push the code to the remote repository&lt;br&gt;
&lt;strong&gt;git stash:&lt;/strong&gt; to stash the local changes in a temporary folder&lt;br&gt;
&lt;strong&gt;git stash pop:&lt;/strong&gt; to pop the stashed changes&lt;br&gt;
&lt;strong&gt;git merge:&lt;/strong&gt; to merge the changes between two local repos&lt;br&gt;
&lt;strong&gt;git fetch:&lt;/strong&gt; git fetch is a primary command used to download contents from a remote repository&lt;br&gt;
&lt;strong&gt;git pull&lt;/strong&gt;: Git fetch + Git Merge&lt;br&gt;
&lt;strong&gt;git cherrypick:&lt;/strong&gt; to merge the particular change from feature to master branch or any branch&lt;br&gt;
&lt;strong&gt;git rm:&lt;/strong&gt; remove the change or unstage it from local repo&lt;br&gt;
&lt;strong&gt;git tag&lt;/strong&gt;: to tag the latest commit in a local branch&lt;br&gt;
&lt;strong&gt;git tag -d&lt;/strong&gt; : delete the tag&lt;br&gt;
&lt;strong&gt;git mv&lt;/strong&gt; : to move the file or changes between two folders in local repo&lt;br&gt;
&lt;strong&gt;git diff&lt;/strong&gt; : to check the difference between two commits, two commit id need to be passed as arguments&lt;br&gt;
&lt;strong&gt;git log&lt;/strong&gt;: to check the history of commit for a specific branch&lt;br&gt;
&lt;strong&gt;git revert&lt;/strong&gt;: to revert the latest changes or commits from local branch&lt;br&gt;
&lt;strong&gt;git status&lt;/strong&gt;: to check the status of the particular change or file&lt;br&gt;
&lt;strong&gt;git config&lt;/strong&gt; : To set the configuration for your git repo like username , Email &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker Volume type "tmpfs"</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Wed, 16 Nov 2022 05:07:26 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/docker-volume-type-tmpfs-90o</link>
      <guid>https://www.debug.school/mailtodubeymohit/docker-volume-type-tmpfs-90o</guid>
      <description>&lt;p&gt;This is another type of docker volume which is stored in the host system’s memory only and not to system’s filesystem.&lt;/p&gt;

&lt;p&gt;Once the host system restarts the volume &amp;amp; data is lost&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is a docker image ?</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Tue, 15 Nov 2022 06:43:56 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/what-is-a-docker-image--2i10</link>
      <guid>https://www.debug.school/mailtodubeymohit/what-is-a-docker-image--2i10</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Docker Image is a software package that contains everything to run an application.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Docker image has multiple filesystems called Layers .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Layers are stacked one over the other.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every layer has a parent layer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;First layer is known as the base image .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every layer has a merged &amp;amp; diff directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Merge directory is something that is attached for the user .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every layer has a different SHA value .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you stop the container the merge directory goes away.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Docker Wait</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Tue, 15 Nov 2022 05:02:04 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/docker-wait-56ea</link>
      <guid>https://www.debug.school/mailtodubeymohit/docker-wait-56ea</guid>
      <description>&lt;p&gt;This command is used to wait or block until the one or more container exits and then it outputs their exit codes . If you use docker wait command on a terminal then you cannot use that terminal for running any other commands.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is Docker Update ?</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Tue, 15 Nov 2022 04:55:57 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/what-is-docker-update--1eoh</link>
      <guid>https://www.debug.school/mailtodubeymohit/what-is-docker-update--1eoh</guid>
      <description>&lt;p&gt;Docker update command updates the configuration of your container on a fly . For example if your container is using a certain amount of CPU shares you can increase the value of that configuration using docker update without getting into the container.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker Stop vs Docker Kill</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Mon, 14 Nov 2022 10:00:00 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/docker-stop-vs-docker-kill-3e6k</link>
      <guid>https://www.debug.school/mailtodubeymohit/docker-stop-vs-docker-kill-3e6k</guid>
      <description>&lt;p&gt;Although the use case is same for both the commands to &lt;strong&gt;terminate&lt;/strong&gt; the docker containers but when you run docker stop it sends the &lt;strong&gt;SIGTERM&lt;/strong&gt; signal where as it sends &lt;strong&gt;SIGKILL&lt;/strong&gt; signal for docker kill.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker pause vs unpause</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Mon, 14 Nov 2022 09:55:38 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/docker-pause-vs-unpause-4009</link>
      <guid>https://www.debug.school/mailtodubeymohit/docker-pause-vs-unpause-4009</guid>
      <description>&lt;p&gt;Docker Pause command halts the running processes inside the container &amp;amp; unpause reinstate the processes .&lt;/p&gt;

&lt;p&gt;Use case is just to run the process at a later date &amp;amp; time .&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day1 : DevOps Training (Docker &amp; GIT)</title>
      <dc:creator>Mohit Dubey</dc:creator>
      <pubDate>Mon, 14 Nov 2022 07:14:55 +0000</pubDate>
      <link>https://www.debug.school/mailtodubeymohit/day1-devops-training-docker-git-18p5</link>
      <guid>https://www.debug.school/mailtodubeymohit/day1-devops-training-docker-git-18p5</guid>
      <description>&lt;p&gt;Write a notes on following with your learning with last session&lt;/p&gt;

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

&lt;p&gt;Docker is a container management platform . It gives you the capability of running your applications in an isolated environment &lt;/p&gt;

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

&lt;p&gt;Docker was required to overcome the restriction of a PC model where you can create multiple users but can run the application only once due to single PID &amp;amp; network (port)&lt;/p&gt;

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

&lt;p&gt;Container is an isolated unit that uses host resources by leveraging the kernel with it's own mount , network &amp;amp; Process ID .&lt;/p&gt;

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

&lt;p&gt;DockerRegistry(Hub)----&amp;gt; Docker pull (Image is pulled)---&amp;gt; Daemon talks to kernel ----&amp;gt; Docker run (Starts the application)&lt;/p&gt;

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

&lt;p&gt;Docker daemon talks to the kernel and asks to create a linux namespace with an isolated network , Mount &amp;amp; runtime environment by leveraging the host resources.&lt;/p&gt;

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