<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=Docker_and_Kubernetes%3A_Getting_Started</id>
	<title>Docker and Kubernetes: Getting Started - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=Docker_and_Kubernetes%3A_Getting_Started"/>
	<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=Docker_and_Kubernetes:_Getting_Started&amp;action=history"/>
	<updated>2026-04-14T21:47:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://serverrental.store/index.php?title=Docker_and_Kubernetes:_Getting_Started&amp;diff=5751&amp;oldid=prev</id>
		<title>Admin: New guide article</title>
		<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=Docker_and_Kubernetes:_Getting_Started&amp;diff=5751&amp;oldid=prev"/>
		<updated>2026-04-12T16:00:56Z</updated>

		<summary type="html">&lt;p&gt;New guide article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Docker and Kubernetes''' are the two most important technologies in modern server infrastructure. Docker provides lightweight containerization, while Kubernetes (K8s) orchestrates containers at scale. Together, they form the foundation of [[Cloud Computing Explained: From Basics to Advanced|cloud-native]] application deployment.&lt;br /&gt;
&lt;br /&gt;
== What Are Containers? ==&lt;br /&gt;
&lt;br /&gt;
Containers are lightweight, isolated environments that package an application with all its dependencies. Unlike virtual machines, containers share the host OS kernel, making them:&lt;br /&gt;
&lt;br /&gt;
* '''Faster to start''' — seconds vs minutes for VMs&lt;br /&gt;
* '''More resource-efficient''' — no separate OS per instance&lt;br /&gt;
* '''Portable''' — runs identically on any system with Docker installed&lt;br /&gt;
* '''Reproducible''' — same environment in development, testing, and production&lt;br /&gt;
&lt;br /&gt;
== Docker Basics ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Docker ===&lt;br /&gt;
&lt;br /&gt;
On Ubuntu/Debian:&lt;br /&gt;
&lt;br /&gt;
 curl -fsSL https://get.docker.com | sh&lt;br /&gt;
 sudo usermod -aG docker $USER&lt;br /&gt;
&lt;br /&gt;
=== Key Concepts ===&lt;br /&gt;
&lt;br /&gt;
* '''Image''' — a read-only template containing the application and dependencies&lt;br /&gt;
* '''Container''' — a running instance of an image&lt;br /&gt;
* '''Dockerfile''' — instructions for building an image&lt;br /&gt;
* '''Docker Hub''' — public registry for sharing images&lt;br /&gt;
&lt;br /&gt;
=== Essential Docker Commands ===&lt;br /&gt;
&lt;br /&gt;
 docker pull nginx                    # download an image&lt;br /&gt;
 docker run -d -p 80:80 nginx        # run container in background&lt;br /&gt;
 docker ps                            # list running containers&lt;br /&gt;
 docker logs container_name           # view container logs&lt;br /&gt;
 docker exec -it container_name bash  # open shell in container&lt;br /&gt;
 docker stop container_name           # stop container&lt;br /&gt;
 docker rm container_name             # remove container&lt;br /&gt;
&lt;br /&gt;
=== Dockerfile Example ===&lt;br /&gt;
&lt;br /&gt;
 FROM python:3.11-slim&lt;br /&gt;
 WORKDIR /app&lt;br /&gt;
 COPY requirements.txt .&lt;br /&gt;
 RUN pip install -r requirements.txt&lt;br /&gt;
 COPY . .&lt;br /&gt;
 EXPOSE 8000&lt;br /&gt;
 CMD [&amp;quot;python&amp;quot;, &amp;quot;app.py&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
Build and run:&lt;br /&gt;
&lt;br /&gt;
 docker build -t myapp .&lt;br /&gt;
 docker run -d -p 8000:8000 myapp&lt;br /&gt;
&lt;br /&gt;
== Docker Compose ==&lt;br /&gt;
&lt;br /&gt;
For multi-container applications, use Docker Compose:&lt;br /&gt;
&lt;br /&gt;
 version: '3.8'&lt;br /&gt;
 services:&lt;br /&gt;
   web:&lt;br /&gt;
     build: .&lt;br /&gt;
     ports:&lt;br /&gt;
       - &amp;quot;80:80&amp;quot;&lt;br /&gt;
   db:&lt;br /&gt;
     image: postgres:15&lt;br /&gt;
     environment:&lt;br /&gt;
       POSTGRES_PASSWORD: secret&lt;br /&gt;
     volumes:&lt;br /&gt;
       - pgdata:/var/lib/postgresql/data&lt;br /&gt;
 volumes:&lt;br /&gt;
   pgdata:&lt;br /&gt;
&lt;br /&gt;
Run with: &amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Kubernetes Introduction ==&lt;br /&gt;
&lt;br /&gt;
Kubernetes (K8s) manages containers across multiple servers. It handles:&lt;br /&gt;
&lt;br /&gt;
* '''Scheduling''' — decides which node runs each container&lt;br /&gt;
* '''Scaling''' — automatically adjusts the number of container replicas&lt;br /&gt;
* '''Self-healing''' — restarts failed containers, replaces unresponsive nodes&lt;br /&gt;
* '''Load balancing''' — distributes traffic across container instances&lt;br /&gt;
* '''Rolling updates''' — deploys new versions with zero downtime&lt;br /&gt;
&lt;br /&gt;
=== Key Kubernetes Concepts ===&lt;br /&gt;
&lt;br /&gt;
* '''Pod''' — smallest deployable unit, contains one or more containers&lt;br /&gt;
* '''Service''' — stable network endpoint for a set of pods&lt;br /&gt;
* '''Deployment''' — manages pod replicas and updates&lt;br /&gt;
* '''Namespace''' — logical isolation within a cluster&lt;br /&gt;
* '''Ingress''' — HTTP routing and load balancing&lt;br /&gt;
&lt;br /&gt;
=== When to Use Kubernetes ===&lt;br /&gt;
&lt;br /&gt;
Kubernetes adds complexity. It is worth using when:&lt;br /&gt;
&lt;br /&gt;
* You run 10+ microservices&lt;br /&gt;
* You need automatic scaling&lt;br /&gt;
* High availability is critical&lt;br /&gt;
* You have a team to manage the infrastructure&lt;br /&gt;
&lt;br /&gt;
For simpler setups, Docker Compose on a single [[VPS vs Dedicated Server: Complete Comparison|VPS or dedicated server]] is often sufficient.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Introduction to Containerization with Docker and Kubernetes]]&lt;br /&gt;
* [[Building a Scalable Cloud Infrastructure]]&lt;br /&gt;
* [[Cloud Computing Explained: From Basics to Advanced]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cloud Computing]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>