Skip to content

Codem-3/Docker-Learning-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Learning Repository

This repository contains a comprehensive Docker learning guide and practical examples for containerization.

Repository Contents

  • 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

Quick Start

Running the Static Website with Docker

  1. Navigate to the staticwebsite directory:

    cd staticwebsite
  2. Run the website using Docker:

    docker run --name static-site -p 8080:80 -v "E:\Downloads\Chrome\staticwebsite:/usr/share/nginx/html" nginx
  3. Access your website:

Managing the Container

# 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

Learning Path

  1. Start with the basics - Read through Docker-Learning-Guide.md
  2. Practice with examples - Try the commands in the guide
  3. Experiment with the static website - Modify HTML files and see changes
  4. Build your own containers - Create Dockerfiles for your projects

What You'll Learn

  • 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

Key Topics Covered

  • 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

Prerequisites

  • Docker Desktop installed on your system
  • Basic command line knowledge
  • Text editor for modifying files

Contributing

Feel free to:

  • Add more examples
  • Improve documentation
  • Report issues
  • Suggest enhancements

Useful Resources


Happy Learning!

Start your Docker journey with this comprehensive guide and hands-on examples.

About

Comprehensive Docker learning guide and practical examples for containerization

Resources

Stars

Watchers

Forks

Languages