C4 Container vs Docker Container
Published on: 11 November 2025
C4 Container vs Docker Container
graph TD
subgraph "Conceptual Design (Blueprint)"
A["**C4 Container: 'Write API'**
An abstract, logical block in the architecture diagram.
Defined as a separately deployable unit."]
end
subgraph "Implementation (Real World)"
B["**Docker Image: 'write-api:v1.2'**
The C4 Container's code and dependencies are
packaged into a static, shippable file."]
C["**Docker Container (Instance 1)**
A running process created from the image.
This is the live, physical realization of the C4 Container."]
D["**Docker Container (Instance 2)**
Another running process for scaling.
Also a physical realization of the same C4 Container."]
end
A -- Is Packaged Into --> B
B -- Runs As --> C
B -- Runs As --> D
style A fill:#007bff,stroke:#0056b3,stroke-width:2px,color:#fff
style B fill:#17a2b8,stroke:#117a8b,stroke-width:2px,color:#fff
style C fill:#28a745,stroke:#1e7e34,stroke-width:2px,color:#fff
style D fill:#28a745,stroke:#1e7e34,stroke-width:2px,color:#fff