# docker-library/docker architecture

> Architecture diagram of the GitHub repository docker-library/docker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/docker-library/docker
- Repository: https://github.com/docker-library/docker

## Overview

This repository maintains the Docker Official Image, but the supplied README describes the repository’s purpose rather than its internal build or runtime flow. The tree identifies CLI, Docker-in-Docker, rootless, and Windows image variants; their implementation relationships are not documented in the available excerpts, so they are shown without inferred edges. The only evidenced relationship is the README’s identification of the repository as the official Docker image source.

Main entry points: [`README.md`](https://github.com/docker-library/docker/blob/master/README.md) (Docker Official Image)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_image["Image variants"]
  node_official["Docker Official Image<br/>[README.md]"]
  node_cli["CLI image"]
  node_dind["DinD image"]
  node_rootless["Rootless image"]
  node_windows22["Windows 2022 image"]
  node_windows25["Windows 2025 image"]
end

subgraph group_runtime["Image runtime"]
  node_cli_entry["CLI entrypoint"]
  node_daemon_entry["Daemon entrypoint"]
end

node_maintainer(("Image user"))

node_maintainer -->|"uses"| node_official

click node_official "https://github.com/docker-library/docker/blob/master/README.md"
click node_cli "https://github.com/docker-library/docker/blob/master/29/cli/Dockerfile"
click node_dind "https://github.com/docker-library/docker/blob/master/29/dind/Dockerfile"
click node_rootless "https://github.com/docker-library/docker/blob/master/29/dind-rootless/Dockerfile"
click node_windows22 "https://github.com/docker-library/docker/blob/master/29/windows/windowsservercore-ltsc2022/Dockerfile"
click node_windows25 "https://github.com/docker-library/docker/blob/master/29/windows/windowsservercore-ltsc2025/Dockerfile"
click node_cli_entry "https://github.com/docker-library/docker/blob/master/docker-entrypoint.sh"
click node_daemon_entry "https://github.com/docker-library/docker/blob/master/dockerd-entrypoint.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_official,node_cli,node_dind,node_rootless,node_windows22,node_windows25,node_maintainer toneBlue
class node_cli_entry,node_daemon_entry toneAmber
```

## Components

### Image variants

- [Docker Official Image](https://github.com/docker-library/docker/blob/master/README.md): `README.md`
- [CLI image](https://github.com/docker-library/docker/blob/master/29/cli/Dockerfile): `29/cli/Dockerfile`
- [DinD image](https://github.com/docker-library/docker/blob/master/29/dind/Dockerfile): `29/dind/Dockerfile`
- [Rootless image](https://github.com/docker-library/docker/blob/master/29/dind-rootless/Dockerfile): `29/dind-rootless/Dockerfile`
- [Windows 2022 image](https://github.com/docker-library/docker/blob/master/29/windows/windowsservercore-ltsc2022/Dockerfile): `29/windows/windowsservercore-ltsc2022/Dockerfile`
- [Windows 2025 image](https://github.com/docker-library/docker/blob/master/29/windows/windowsservercore-ltsc2025/Dockerfile): `29/windows/windowsservercore-ltsc2025/Dockerfile`

### Image runtime

- [CLI entrypoint](https://github.com/docker-library/docker/blob/master/docker-entrypoint.sh): `docker-entrypoint.sh`
- [Daemon entrypoint](https://github.com/docker-library/docker/blob/master/dockerd-entrypoint.sh): `dockerd-entrypoint.sh`

### Other components

- **Image user**

## Connections

- Image user → Docker Official Image: uses (evidence: `README.md`)
