Skip to content
byteAlokPublic

About

🐳 Docker | πŸ“¦ Containers | βš™οΈ DevOps | πŸš€ CI/CD | ☁️ Cloud Computing | πŸ”§ Docker Compose | πŸ—οΈ Containerization | πŸ” Networking & Security | 🧩 Hands-on Labs & Practical Projects

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

12 Commits

Folders and files

Repository files navigation

🐳 Docker – Learning & Practical Series (Day 01)

A hands-on journey to learning Docker, containerization, and container-based application deployment through practical examples, commands, and real-world implementations.

Docker Learning Banner

πŸ“Œ About This Repository

This repository documents my complete Docker learning journey, starting from the fundamentals of containerization to advanced Docker concepts and practical implementations.

Each topic is organized day-wise with detailed explanations, executable commands, examples, configurations, and hands-on exercises.

🎯 Learning Objectives

  • 🐳 Understand Docker fundamentals and containerization.
  • πŸ“¦ Work with Docker Images and Containers.
  • βš™οΈ Create and manage Dockerfiles.
  • πŸ”— Understand Docker Networking and Volumes.
  • 🧩 Work with Docker Compose.
  • πŸ” Learn Docker security and best practices.
  • πŸš€ Containerize and deploy real-world applications.
  • ☁️ Integrate Docker with CI/CD and Cloud platforms.

πŸ“– Introduction to Docker

Docker is an open-source platform that enables developers to build, package, distribute, and run applications inside isolated environments called Containers.

Docker solves a common development problem:

"It works on my machine, but not on another machine."

Docker packages an application along with its required dependencies, libraries, and runtime environment into a Docker Image. This image can then be used to create and run containers consistently across different environments.

πŸ–₯️ Understanding Virtualization

Traditional virtualization uses a Hypervisor to create multiple Virtual Machines (VMs) on a physical machine.

Each Virtual Machine has its own Guest Operating System, kernel, libraries, and applications.

Docker uses a different approach called OS-level Virtualization (Containerization).

Instead of creating a complete Virtual Machine for every application, Docker runs applications inside isolated containers that share the host operating system's kernel.

This makes containers lightweight, faster to start, and more resource-efficient than traditional Virtual Machines.

βš–οΈ Virtual Machines vs Docker Containers

Virtual Machines Docker Containers
Hardware-level virtualization OS-level virtualization
Uses a Hypervisor Uses a Container Engine
Each VM has its own Guest OS Containers share the host kernel
Requires more resources Generally lightweight
Slower startup Faster startup
Hardware-level isolation Process-level isolation

Note: Docker containers are not completely independent operating systems. They share the host kernel. On Windows and macOS, Docker Desktop generally uses a lightweight Linux VM to run Linux containers.

πŸ—οΈ Basic Architecture

Virtual Machine Architecture

Physical Infrastructure
        |
    Hypervisor
        |
  +-----+-----+
  |           |
 VM 1        VM 2
  |           |
Guest OS    Guest OS
  |           |
 App 1       App 2

Docker Container Architecture

Physical Infrastructure
        |
     Host OS
        |
   Docker Engine
        |
  +-----+-----+
  |           |
Container 1  Container 2
  |           |
  App 1       App 2
  |           |
Dependencies Dependencies

   Shared Host Kernel

πŸ› οΈ Installation & Command References

Before starting the practical lessons, Docker must be installed and configured on your system.

1. Docker Installation Guide

πŸ“¦ Docker Installation – Step-by-Step Commands

DevOps Tools Installation – Docker.md

Contains Docker installation instructions, setup commands, and configuration steps.

2. Docker Command Handbook

⌨️ Docker – Essential Command Reference

System Command Handbook – docker.md

Contains approximately 25 commonly used Docker commands with their syntax and usage examples.

Useful for quick reference while performing Docker practicals and managing containers, images, networks, and other Docker resources.


πŸ“š Learning Structure

All learning materials are organized day-wise.

Each day contains a Markdown file documenting the topics covered, commands executed, explanations, and practical results.

πŸ“‚ Repository Structure

Docker/
β”‚
β”œβ”€β”€ README.md              # Day 01 - Introduction to Docker
β”‚
β”œβ”€β”€ Day-02-Docker-Images-Containers-and-Terminal/
|         |                           
|         └── README.md
β”‚
β”œβ”€β”€ Day-03-Dockerfile-Python-Deployment-and-Port-Mapping/
|         |                           
|         └── README.md
β”‚
β”œβ”€β”€ Day-04-Dockerfile-Image-Build-and-Container-Execution/
|         |                           
|         └── README.md
β”‚
β”œβ”€β”€ Day-05-Dockerfile-Port-ENTRYPOINT-AWS-ECR/
|         |                           
|         └── README.md
β”‚
β”œβ”€β”€ Day-06-Multi-Stage-Docker-Build/
|         |                           
|         └── README.md
β”‚
β”œβ”€β”€ Day-07-Docker-Networking-and-Docker-Volumes/
|         |                           
|         └── README.md
β”‚
β”œβ”€β”€ Day-08-Docker-Compose-and-Docker-Swarm/
|         |                           
|         └── README.md
|
β”œβ”€β”€ Image-Notes/
|         |  
|         β”œβ”€β”€ IMG-Day-1.png                         
|         β”œβ”€β”€ IMG-Day-2.png                         
|         └── ...
β”‚
└── ...

Note: The above structure is an example. Actual files and folders will be added as new topics are covered.

πŸ“ Documentation Naming Convention

πŸ“š All Docker learning topics, theoretical concepts, and practical implementations are documented in individual Markdown (.md) files.

πŸ“ No separate directories are created for individual days, as the practical code and examples are limited. All documentation files are maintained directly inside the root Docker/ directory.

πŸ“„ Naming Format

Day-<n>-<Topic-Name>/README.md

πŸ’‘ Examples

Day Documentation File
πŸ“˜ Day 01 README.md
🐳 Day 02 Day-02-Docker-Images-Containers-and-Terminal/README.md
πŸš€ Day 03 Day-03-Dockerfile-Python-Deployment-and-Port-Mapping/README.md
πŸ› οΈ Day 04 Day-04-Dockerfile-Image-Build-and-Container-Execution/README.md
☁️ Day 05 Day-05-Dockerfile-Port-ENTRYPOINT-AWS-ECR/README.md
πŸ“¦ Day 06 Day-06-Multi-Stage-Docker-Build/README.md
🌐 Day 07 Day-07-Docker-Networking-and-Docker-Volumes/README.md
βš™οΈ Day 08 Day-08-Docker-Compose-and-Docker-Swarm/README.md

πŸ“Œ Documentation Guidelines

  • πŸ“– Day 01: Root README.md represents Introduction to Docker.
  • πŸ“ Individual Files: Every subsequent day has its own .md file.
  • πŸ”§ Theory + Practicals: Both concepts and command-based practicals are documented in the same file.
  • πŸ“‚ Single Directory: All Markdown files remain directly inside the root Docker/ directory.
  • ✨ Consistent Naming: Use descriptive, meaningful, and day-wise filenames for easy navigation.

🎯 Goal: Keep the repository simple, organized, and easy to navigate while maintaining all learning documentation in one place.

πŸ“„ Daily Documentation Includes

  • πŸ“– Topic Introduction
  • 🧠 Conceptual Explanation
  • πŸ’» Commands and Syntax
  • πŸ” Command Execution Results
  • πŸ§ͺ Hands-on Practicals
  • πŸ“Œ Important Notes and Learnings

πŸš€ Learning Approach

This repository follows a practical, step-by-step learning approach.

  1. Understand the concept.
  2. Learn the required commands and syntax.
  3. Execute commands in a practical environment.
  4. Observe and analyze the results.
  5. Document the learning and implementation.

The goal is not just to understand Docker theoretically, but to gain practical experience with containerization and real-world DevOps workflows.


πŸ”— Useful Resources


πŸ‘¨β€πŸ’» Author

Alok Maurya

πŸ’‘ Learning | Building | Experimenting | Growing


⭐ If you find this repository helpful, consider giving it a star!

About

🐳 Docker | πŸ“¦ Containers | βš™οΈ DevOps | πŸš€ CI/CD | ☁️ Cloud Computing | πŸ”§ Docker Compose | πŸ—οΈ Containerization | πŸ” Networking & Security | 🧩 Hands-on Labs & Practical Projects

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors