Skip to content

Latest commit

 

History

History
122 lines (85 loc) · 2.39 KB

File metadata and controls

122 lines (85 loc) · 2.39 KB

Quick Start Guide 🚀

Get started with Docker in 5 minutes!

Step 1: Verify Docker Installation

# Check Docker version
docker --version

# Verify Docker is running
docker info

If you see version information, you're good to go! If not, install Docker Desktop from docker.com/get-started

Step 2: Run Your First Container

# This will download and run the hello-world image
docker run hello-world

You should see a welcome message! 🎉

Step 3: Try a Real Application

# Run nginx web server
docker run -d -p 8080:80 --name my-nginx nginx

# Open your browser and visit: http://localhost:8080
# You should see the nginx welcome page!

# Check if it's running
docker ps

# View logs
docker logs my-nginx

# Stop it
docker stop my-nginx

# Remove it
docker rm my-nginx

Step 4: Build Your First Image

# Navigate to the simple-node example
cd 02-dockerfiles/simple-node

# Build the image
docker build -t my-first-app:latest .

# Run your app
docker run -d -p 3000:3000 --name my-app my-first-app:latest

# Visit http://localhost:3000
# You should see a JSON response!

# Clean up
docker stop my-app
docker rm my-app

Step 5: Try Docker Compose

# Navigate to the compose example
cd 04-docker-compose/simple-web

# Start all services
docker-compose up -d

# Check running services
docker-compose ps

# View logs
docker-compose logs

# Stop everything
docker-compose down

Next Steps

  1. ✅ Read README.md for the full learning path
  2. ✅ Complete exercises in 01-basics/exercises.md
  3. ✅ Practice with examples in each phase
  4. ✅ Build your own projects!

Common Commands Cheat Sheet

# Containers
docker ps                    # List running containers
docker ps -a                 # List all containers
docker stop <name>           # Stop container
docker start <name>          # Start container
docker rm <name>             # Remove container
docker logs <name>           # View logs

# Images
docker images                # List images
docker build -t <name> .     # Build image
docker rmi <name>            # Remove image

# System
docker system prune          # Clean up unused resources
docker stats                 # View resource usage

Need Help?

  • Check TROUBLESHOOTING.md for common issues
  • Review the README in each phase directory
  • Practice with the exercises

Happy Learning! 🐳