DevOps is about speed, automation, and reliability — and Docker is at the core of it.
🔹 Install Docker
sudo apt update
sudo apt install docker.io -y
🔹 Run Your First Container
docker run hello-world
🔹 Run Nginx
docker run -d -p 8080:80 nginx
Visit:
http://localhost:8080
🔹 Docker Compose Example
version: '3'
services:
app:
image: nginx
ports:
- "8080:80"
🔹 Why Docker?
- Isolation
- Portability
- Fast deployment