Get started with Docker in 5 minutes!
# Check Docker version
docker --version
# Verify Docker is running
docker infoIf you see version information, you're good to go! If not, install Docker Desktop from docker.com/get-started
# This will download and run the hello-world image
docker run hello-worldYou should see a welcome message! 🎉
# 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# 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# 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- ✅ Read
README.mdfor the full learning path - ✅ Complete exercises in
01-basics/exercises.md - ✅ Practice with examples in each phase
- ✅ Build your own projects!
# 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- Check
TROUBLESHOOTING.mdfor common issues - Review the README in each phase directory
- Practice with the exercises
Happy Learning! 🐳