This series helps you learn how to containerize web apps using Docker.
Open git bash application
mkdir -p /var/www/tutorials/lesson-docker-getting-started
echo "mkdir /var/www/tutorials/lesson-docker-getting-started"
cd /var/www/tutorials/lesson-docker-getting-started
git init
git remote add origin https://dev03@saixge.co.za/plesk-git/docker-git-tut-saixge.git
# Get password from your mentor
git pull origin main
git fetch origin
git checkout lesson-docker-0001
Open README.html in your browser inside each branch for guidance.
From the git bash prompt (black screen)
git pull origin main
git fetch origin
git checkout lesson-docker-0001
Open README.html in your browser inside each branch for guidance.
This series helps you learn how to containerize web apps using Docker.
Still confused try:👶 New to Git or Docker? Start with the Beginner Guide
| Branch | Title | Description |
|---|---|---|
| lesson-docker-0001 | 🟢 HTML with Nginx | Serve a static HTML page using Nginx and Docker |
| lesson-docker-0002 | 🔵 Basic PHP | Use the PHP Apache image to render a dynamic PHP file |
| lesson-docker-0003 | 🟡 PHP + MySQL | Connect PHP to MySQL using Docker Compose |
| lesson-docker-0004 | 🔴 Persistent MySQL | Store MySQL data using Docker Volumes |
| lesson-docker-0005 | 🟣 phpMyAdmin GUI | Manage MySQL visually using phpMyAdmin |
| lesson-docker-0006 | 🟤 Final Setup | Use environment variables and organize with Docker Compose |
Dockerfile # OR docker-compose.yml index.html / index.php README.html # HTML page with objectives and instructions
Each lesson is self-contained and can be run independently.
docker build -t myimage . # Build an image from Dockerfile
docker run -p 8080:80 myimage # Run container with port mapping
docker compose up # Start all services
docker compose down # Stop and remove containers
docker ps # List running containers
docker stop <container_name> # Stop a container
docker rm <container_name> # Remove a container
docker images # List Docker images
docker rmi <image_name> # Delete an image
docker volume ls # List volumes
docker volume rm <volume_name> # Delete volume (use with caution)