This repository contains a comprehensive Docker learning guide and practical examples for containerization.
- Docker-Learning-Guide.md - Complete Docker reference guide with examples
- staticwebsite/ - Sample static website for Docker practice
- index.html - Main page
- page1.html - Sample page 1
- page2.html - Sample page 2
-
Navigate to the staticwebsite directory:
cd staticwebsite -
Run the website using Docker:
docker run --name static-site -p 8080:80 -v "E:\Downloads\Chrome\staticwebsite:/usr/share/nginx/html" nginx -
Access your website:
- Open your browser and go to http://localhost:8080
- Navigate to http://localhost:8080/page1.html and http://localhost:8080/page2.html
# Stop the container
docker stop static-site
# Start the container again
docker start static-site
# Remove the container
docker rm static-site
# View container logs
docker logs static-site- Start with the basics - Read through Docker-Learning-Guide.md
- Practice with examples - Try the commands in the guide
- Experiment with the static website - Modify HTML files and see changes
- Build your own containers - Create Dockerfiles for your projects
- Docker fundamentals and concepts
- Container lifecycle management
- Volume mounting and data persistence
- Port mapping and networking
- Dockerfile creation and best practices
- Troubleshooting common issues
- Real-world deployment scenarios
- Container Basics: Images, containers, and registries
- Commands: Essential Docker CLI commands
- Volumes: Data persistence and file sharing
- Networking: Port mapping and container communication
- Dockerfiles: Building custom images
- Best Practices: Security, performance, and resource management
- Troubleshooting: Common issues and debugging techniques
- Docker Desktop installed on your system
- Basic command line knowledge
- Text editor for modifying files
Feel free to:
- Add more examples
- Improve documentation
- Report issues
- Suggest enhancements
Happy Learning!
Start your Docker journey with this comprehensive guide and hands-on examples.