> For the complete documentation index, see [llms.txt](https://m0hdi1.gitbook.io/cheat-sheet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://m0hdi1.gitbook.io/cheat-sheet/general/docker.md).

# Docker

## Introduction

***Docker** is an open-source platform designed to **automate the deployment, scaling, and management of applications** using **containerization**.*

## Key Concepts:

* **Container**: A lightweight, standalone, and executable package that includes everything needed to run a piece of software—**code, runtime, libraries, and system tools**.
* **Image**: A read-only template used to create containers.
* **Dockerfile**: A script that contains instructions to build a Docker image.
* **Docker Hub**: A public registry where you can upload and download Docker images.

## Why use Docker?

* Makes applications **portable** across environments (development, staging, production).
* Reduces issues like “it works on my machine.”
* Saves system resources compared to traditional virtual machines.
* Great for **DevOps**, **CI/CD**, and **microservices** architecture.
