<?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>Docker &#8211; Nexto</title>
	<atom:link href="https://nexto.ch/category/docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://nexto.ch</link>
	<description>Business Empowerment</description>
	<lastBuildDate>Sat, 26 Oct 2024 15:29:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Introduction to Docker: Containerizing Applications</title>
		<link>https://nexto.ch/docker/introduction-to-docker-containerizing-applications/</link>
		
		<dc:creator><![CDATA[Nexto]]></dc:creator>
		<pubDate>Tue, 01 Oct 2024 15:16:37 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<guid isPermaLink="false">https://nexto.ch/?p=226671</guid>

					<description><![CDATA[Introduction Docker is a platform that allows you to automate the deployment...]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Docker is a platform that allows you to automate the deployment of applications inside containers, providing a lightweight, portable, and self-sufficient environment. This guide will introduce you to the fundamental concepts of Docker and show you how to use it to containerize an application.</p>
<h4>Prerequisites</h4>
<ul>
<li>An updated Ubuntu system.</li>
<li>Access with sudo privileges.</li>
</ul>
<h5>Step 1: Install Docker</h5>
<p>Install Docker using the following commands:</p>
<pre>sudo apt update
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
</pre>
<p>Verify the installation by checking the Docker version:</p>
<pre>docker --version
</pre>
<h5>Step 2: Understand Basic Concepts</h5>
<ul>
<li><strong>Images:</strong> Templates for creating containers. They are built from a Dockerfile.</li>
<li><strong>Containers:</strong> Executable instances of images.</li>
<li><strong>Docker Hub:</strong> An online repository where you can find Docker images.</li>
</ul>
<h5>Step 3: Run Your First Container</h5>
<p>Run the test container hello-world:</p>
<pre>sudo docker run hello-world
</pre>
<p>This command will download the hello-world image (if not present) and run the container.</p>
<h5>Step 4: Run a Web Application with Docker</h5>
<p>Run an Nginx container on port 80:</p>
<pre>sudo docker run -d -p 80:80 nginx
</pre>
<ul>
<li>-d runs the container in the background.</li>
<li>-p maps port 80 of the container to port 80 of the host.</li>
</ul>
<p>Visit http://your_server_ip in the browser to see the Nginx default page.</p>
<h5>Step 5: Manage Containers</h5>
<ul>
<li>List running containers:</li>
</ul>
<pre>sudo docker ps
</pre>
<ul>
<li>Stop a container:</li>
</ul>
<pre>sudo docker stop [container_id]
</pre>
<ul>
<li>Remove a container:</li>
</ul>
<pre>sudo docker rm [container_id]
</pre>
<h5>Step 6: Create a Custom Image</h5>
<ul>
<li>Create a Dockerfile:</li>
</ul>
<pre>FROM ubuntu:latest
RUN apt-get update &amp;&amp; apt-get install -y python3
CMD ["python3", "--version"]
</pre>
<ul>
<li>Build the image:</li>
</ul>
<pre>sudo docker build -t my_python_image .
</pre>
<ul>
<li>Run the container:</li>
</ul>
<pre>sudo docker run my_python_image
</pre>
<h4>Conclusion</h4>
<p>You have learned the basics of Docker and how to use it to run and create containers. Continue exploring to discover all the potential of Docker in application containerization.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
