<?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>Shreedhar4037 &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/shreedhar4037/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>Mon, 29 Aug 2022 17:00:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>List of 20 docker commands and its use cases with example?</title>
		<link>https://www.bestdevops.com/list-of-20-docker-commands-and-its-use-cases-with-example-2/</link>
					<comments>https://www.bestdevops.com/list-of-20-docker-commands-and-its-use-cases-with-example-2/#respond</comments>
		
		<dc:creator><![CDATA[Shreedhar4037]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 17:00:26 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26972</guid>

					<description><![CDATA[1.docker &#8211;version: This command helps you know the installed version of the docker software on your system. 2.docker pull nginx: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">1.<strong>docker &#8211;version:</strong> This command helps you know the installed version of the docker software on your system.</p>



<p class="wp-block-paragraph">2.<strong>docker pull nginx:</strong> This command helps you pull images from the central docker repository.</p>



<p class="wp-block-paragraph">3.<strong>docker images: </strong>This command helps you in listing all the docker images, downloaded on your system.</p>



<p class="wp-block-paragraph">4.<strong>docker run –it -d centos: </strong>This command helps in running containers, from their image name.</p>



<p class="wp-block-paragraph">-It = which basically makes the terminal interactive.</p>



<p class="wp-block-paragraph">-d = which means run the container as a daemon and that should be run the container in the background.</p>



<p class="wp-block-paragraph">5.<strong>docker ps: </strong>This command helps in listing all the containers which are running in the system.</p>



<p class="wp-block-paragraph">6.<strong>docker ps –a: </strong>if there are any stopped containers, they can be seen by adding the “-a” flag in this command.</p>



<p class="wp-block-paragraph">7.<strong>docker stop container ID (or) name: </strong>This command will stop the containers which are running.</p>



<p class="wp-block-paragraph">8.<strong>docker exec –it container id bash (current terminal space): </strong>for logging into/accessing the container, one can use the exec command.</p>



<p class="wp-block-paragraph">9.<strong>docker kill container id: </strong>This container kills the container by stopping its execution immediately. The difference between ‘docker kill’ and ‘docker stop’ gives the container time to shutdown in any situations, when it is taking too much time for getting the container to stop, one can opt to kill it.</p>



<p class="wp-block-paragraph">10.<strong>docker rm container Id: </strong>To remove a stopped container from the system, we use the rm command.</p>



<p class="wp-block-paragraph">11.<strong>docker rmi image id: </strong>To remove an image from the system we use the command “rmi”.</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/list-of-20-docker-commands-and-its-use-cases-with-example-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>List of dockerfile instructions and its Brief Summary?</title>
		<link>https://www.bestdevops.com/list-of-dockerfile-instructions-and-its-brief-summary/</link>
					<comments>https://www.bestdevops.com/list-of-dockerfile-instructions-and-its-brief-summary/#respond</comments>
		
		<dc:creator><![CDATA[Shreedhar4037]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 16:49:40 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26970</guid>

					<description><![CDATA[The format of Dockerfile is similar to the below syntax: # Comment INSTRUCTION arguments A Dockerfile must start with a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The format of Dockerfile is similar to the below syntax:</p>



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



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



<p class="wp-block-paragraph">A Dockerfile must start with a FROM instruction.</p>



<p class="wp-block-paragraph">There are multiple INSTRUCTIONS that are available in Dockerfile, some of these include:</p>



<ul class="wp-block-list"><li>FROM</li><li>RUN</li><li>CMD</li><li>LABEL</li><li>EXPOSE</li></ul>



<p class="wp-block-paragraph"><strong>FROM:</strong> The FROM instruction specifies the Base Image from which you are building.</p>



<p class="wp-block-paragraph"><strong>RUN:</strong> In this we can run our commands for installing the packages  </p>



<p class="wp-block-paragraph"><strong>ADD: </strong>This instruction will give the output of converting tar file in to normal file and it will add in to that particular directory.</p>



<p class="wp-block-paragraph"><strong>COPY: </strong>This instruction will give the output of copying the content and nothing will do more than that in the docker instruction. This instruction will give you the result of moving files.</p>



<p class="wp-block-paragraph">COPY and ADD are both Dockerfile instructions that serve similar purposes. They let you copy files from a specific location into a Docker image.</p>



<p class="wp-block-paragraph"><strong>EXPOSE:</strong> The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime.</p>



<p class="wp-block-paragraph">The EXPOSE instruction does not actually publish the port. It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be published.</p>



<p class="wp-block-paragraph"><strong>HEALTHCHECK:</strong>  The HEALTHCHECK instruction Docker allows us to tell the platform on how to test that our application is healthy. When Docker starts a container, it monitors the process that the container runs. If the process ends, the container exits.  That&#8217;s just a basic check and does not necessarily tell the detail about the application.</p>



<p class="wp-block-paragraph">We can specify certain options before the CMD operation, these includes:</p>



<p class="wp-block-paragraph">HEALTHCHECK &#8211;interval=5s CMD ping -c 1 172.17.0.2</p>



<ul class="wp-block-list"><li>&#8211;interval=DURATION (default: 30s)</li><li>&#8211;timeout=DURATION (default: 30s)</li><li>&#8211;start-period=DURATION (default: 0s)</li><li>&#8211;retries=N (default: 3)</li></ul>



<p class="wp-block-paragraph"><strong>ENTRYPOINT:</strong> The best use for ENTRYPOINT is to set the image’s main command. This  doesn’t allow you to override the command. It is important to understand the distinction between CMD and ENTRYPOINT</p>



<p class="wp-block-paragraph">Sample Code Snippet:</p>



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



<p class="wp-block-paragraph">ENTRYPOINT [&#8220;top&#8221;, &#8220;-b&#8221;]</p>



<p class="wp-block-paragraph">CMD [&#8220;-c&#8221;]</p>



<p class="wp-block-paragraph"><strong>WORKDIR:</strong> The WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile.The WORKDIR instruction can be used multiple times in a Dockerfile.</p>



<p class="wp-block-paragraph"><strong>ENV:</strong> The ENV instruction sets the environment variable &lt;key&gt; to the value &lt;value&gt;.</p>



<p class="wp-block-paragraph">You can use -e, &#8211;env, and &#8211;env-file flags to set simple environment variables in the container you’re running or overwrite variables that are defined in the Dockerfile of the image you’re running.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/list-of-dockerfile-instructions-and-its-brief-summary/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between docker exec and attach?</title>
		<link>https://www.bestdevops.com/what-is-the-difference-between-docker-exec-and-attach-2/</link>
					<comments>https://www.bestdevops.com/what-is-the-difference-between-docker-exec-and-attach-2/#respond</comments>
		
		<dc:creator><![CDATA[Shreedhar4037]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 16:28:26 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26968</guid>

					<description><![CDATA[Docker Exec: The docker container exec command runs a new command in a running container. The command started using docker [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size wp-block-paragraph">Docker Exec:</p>



<p class="wp-block-paragraph">The docker container exec command runs a new command in a running container. The command started using docker exec only runs while the container’s primary process (PID 1) is running, and it is not restarted if the container is restarted.</p>



<p class="wp-block-paragraph">docker exec [OPTIONS] CONTAINER COMMAND [ARG…]</p>



<p class="has-medium-font-size wp-block-paragraph">Docker attach:</p>



<p class="wp-block-paragraph">When we start a docker container, we need to decide if we want to run in a default foreground mode or the detached mode.</p>



<p class="wp-block-paragraph">It will attach local standard input, output, and error streams to a running container.</p>



<p class="wp-block-paragraph">docker attach [OPTIONS] CONTAINER</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/what-is-the-difference-between-docker-exec-and-attach-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between docker stop and kill?</title>
		<link>https://www.bestdevops.com/what-is-the-difference-between-docker-stop-and-kill-3/</link>
					<comments>https://www.bestdevops.com/what-is-the-difference-between-docker-stop-and-kill-3/#respond</comments>
		
		<dc:creator><![CDATA[Shreedhar4037]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 16:19:38 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26965</guid>

					<description><![CDATA[Docker Stop: This command will stop the containers which are running. docker stop [container id or name] Docker Kill: This [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size wp-block-paragraph">Docker Stop:</p>



<p class="wp-block-paragraph">This command will stop the containers which are running.</p>



<p class="wp-block-paragraph">docker stop [container id or name]</p>



<p class="has-medium-font-size wp-block-paragraph">Docker Kill:</p>



<p class="wp-block-paragraph">This command will  kill the container by stopping its execution immediately. </p>



<p class="wp-block-paragraph">docker kill [container id or name]</p>



<p class="wp-block-paragraph">The difference between ‘docker kill’ and ‘docker stop’ gives the container time to shutdown in any situations, when it is taking too much time for getting the container to stop, one can opt to kill it.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/what-is-the-difference-between-docker-stop-and-kill-3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between docker pause and unpause?</title>
		<link>https://www.bestdevops.com/what-is-the-different-between-docker-pause-and-unpause/</link>
					<comments>https://www.bestdevops.com/what-is-the-different-between-docker-pause-and-unpause/#respond</comments>
		
		<dc:creator><![CDATA[Shreedhar4037]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 16:06:23 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26949</guid>

					<description><![CDATA[DOCKER PAUSE: It will suspends all processes in the specified containers. It means that the processes in the container stop [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size wp-block-paragraph">DOCKER PAUSE:</p>



<p class="wp-block-paragraph">It will suspends all  processes in the specified containers. It means that the processes in the container stop running, and they are be able to resumed later. </p>



<p class="wp-block-paragraph">docker pause [container id or name]</p>



<p class="has-small-font-size wp-block-paragraph">DOCKER UNPAUSE:</p>



<p class="wp-block-paragraph">It will resumes all the processes in the specified container. It means recovery container all processes.</p>



<p class="wp-block-paragraph">docker unpause  [container id or name]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/what-is-the-different-between-docker-pause-and-unpause/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Components of Docker and its Brief Summary?</title>
		<link>https://www.bestdevops.com/components-of-docker-and-its-brief-summary-2/</link>
					<comments>https://www.bestdevops.com/components-of-docker-and-its-brief-summary-2/#respond</comments>
		
		<dc:creator><![CDATA[Shreedhar4037]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 15:20:01 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26921</guid>

					<description><![CDATA[DOCKER: It is the world’s leading software container technology which is used for creating and managing containers.Docker is an open [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size wp-block-paragraph">DOCKER: </p>



<p class="has-small-font-size wp-block-paragraph">It is the world’s leading software container technology which is used for creating and managing containers.<br>Docker is an open platform, once we build a docker container, we can run it anywhere, say it windows, Linux, mac whether on a laptop, data center, or in the cloud.<br>The whole idea of docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere.</p>



<p class="has-small-font-size wp-block-paragraph">The Docker components are divided into two categories; </p>



<p class="has-small-font-size wp-block-paragraph">a)Basic  b) Advanced</p>



<p class="has-medium-font-size wp-block-paragraph">a)Basic components</p>



<p class="has-small-font-size wp-block-paragraph">1) Docker client: Whenever we are using docker commands, the client sends the commands to dockerd, which carries them out. The docker command uses the Docker API. Then the docker can communicate with more than one daemon. </p>



<p class="has-small-font-size wp-block-paragraph">2)Docker image: Docker Image is a file that contains all the necessary dependency and configurations which are required to run an application: code, runtime, system tools, system libraries and settings.</p>



<p class="has-small-font-size wp-block-paragraph">3)Docker Daemon : It will listens the docker API requests and manages docker objects such as images, containers, networks, and volumes. A daemon can also communicate with other daemons to manage Docker services.</p>



<p class="has-small-font-size wp-block-paragraph">4)Docker Networking: Docker takes care of the networking aspects so that containers can communicate with other containers and also with the Docker Host. Docker networking subsystem is pluggable, using drivers. There are several drivers available by default and provides core networking functionality.</p>



<ul class="has-small-font-size wp-block-list"><li>bridge&nbsp;</li><li>host</li><li>overlay</li><li>macvlan</li><li>none</li></ul>



<p class="has-small-font-size wp-block-paragraph">5)Docker registry: A Docker registry stores Docker images. Docker Hub is a public registry that anyone can use, and Docker is configured to look for images on Docker Hub by default. You can even run your own private registry.</p>



<p class="has-small-font-size wp-block-paragraph">When you use the docker pull or docker run commands, the required images are pulled from your configured registry. When you use the docker push command, your image is pushed to your configured registry.</p>



<p class="has-small-font-size wp-block-paragraph">6)Docker container: These are the live running instances of Docker images. And it is isolated environment where we can run application and its libraries and dependencies.</p>



<p class="has-medium-font-size wp-block-paragraph"> b)Advanced Concepts:</p>



<p class="has-small-font-size wp-block-paragraph">1)Docker Compose:<strong> </strong>Sometimes you want to run multiple containers but as a single service. This task can be accomplished with the help of Docker compose as it is specifically designed for this goal. It follows the principle of isolation between the containers but also lets the containers interact with each other. The Docker compose environments are also written using YAML. </p>



<p class="has-small-font-size wp-block-paragraph">2)Docker swarm: Docker Swarm is a container orchestration tool that is natively supported by Docker. A node is an instance of the Docker engine participating in the swarm. To deploy your application to a swarm, you submit a service definition to a manager node. The manager node dispatches units of work called tasks to worker nodes.</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/components-of-docker-and-its-brief-summary-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
