# k3d-io/k3d architecture

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

- Interactive diagram: https://gitdiagram.com/k3d-io/k3d
- Repository: https://github.com/k3d-io/k3d

## Overview

1. **What this repository is**
   - k3d is a Go-based CLI for creating and managing **k3s clusters inside Docker containers**.
   - The architectural boundary is clear: the user talks to the CLI, and the CLI talks to the local Docker daemon to create/update/remove cluster components.

2. **Primary entry points**
   - `main.go` and `cmd/root.go` are the top-level entry into the application.
   - The `cmd/` tree is organized by user-facing subcommands: `cluster`, `node`, `registry`, `image`, `config`, `kubeconfig`, `debug`, and `version`.
   - Each subcommand layer is thin and delegates most real work to packages under `pkg/`.

3. **Command layer as orchestration shell**
   - The `cmd/*` packages are the presentation layer for CLI arguments, flags, and output formatting.
   - They translate user intent such as “create cluster”, “import image”, or “merge kubeconfig” into structured actions and calls into the client/domain packages.
   - `cmd/util/` contains shared CLI helpers for output, filtering, completion, ports, runtime labels, and config handling.

4. **Core domain and intent model**
   - `pkg/types/` defines the project’s core data structures: clusters, nodes, registries, load balancers, images, K3s-related paths/env, and “fixes” assets.
   - This layer represents the desired topology and runtime metadata the CLI needs to materialize.
   - The `pkg/actions/` package contains higher-level behavior hooks, such as node lifecycle hooks.

5. **Configuration pipeline**
   - `pkg/config/` is a substantial subsystem for reading, merging, validating, transforming, and migrating configuration files across versions.
   - Versioned schemas and types live under `pkg/config/v1alpha2` through `v1alpha5`, showing that config compatibility is a first-class concern.
   - The flow is: user config file → merge/transform/migrate → validate → normalized internal config used by cluster operations.

6. **Client layer as the main coordination boundary**
   - `pkg/client/` is the central orchestration layer that bridges CLI commands and runtime implementation.
   - It owns cluster, node, registry, kubeconfig, host, IPAM, load balancer, environment, and port-related coordination.
   - This is where high-level requested state becomes concrete runtime operations, making it the most important “control plane” inside the repo.

7. **Runtime abstraction and Docker backend**
   - `pkg/runtimes/` defines the runtime interface and errors/types shared across implementations.
   - `pkg/runtimes/docker/` is the only visible concrete backend, responsible for talking to Docker to create networks, containers, volumes, images, and inspect host/runtime state.
   - The architecture therefore depends on Docker as the external execution substrate; k3d is not managing Kubernetes directly, but K3s containers running in Docker.

8. **Cluster topology and data flow**
   - A cluster creation request typically flows from CLI → client → Docker runtime.
   - The runtime creates the k3s server/agent containers, networking, volumes, and any supporting components.
   - The cluster can be multi-node, and the codebase includes explicit start/stop/delete/edit/list operations for both clusters and nodes, indicating lifecycle management is a central workflow.

9. **Load balancer and networking**
   - k3d includes an internal load balancer model in `pkg/types/loadbalancer.go` and runtime support in `pkg/client/loadbalancer.go` plus Docker network helpers.
   - The `proxy/` directory contains an nginx-based proxy image/config/templates, which is used as the cluster’s traffic entry point.
   - This means service exposure is mediated through an internal proxy container rather than direct host binding alone.

10. **Registries and image handling**
   - The repo has dedicated support for local registries via `cmd/registry/`, `pkg/client/registry.go`, and `pkg/types/registry.go`.
   - `cmd/image/` and `pkg/client/tools.go` support importing images into the Docker/k3d environment.
   - This subsystem matters because local dev workflows often depend on preloading images and wiring registries into the cluster.

11. **Kubeconfig integration**
   - `cmd/kubeconfig/` and `pkg/client/kubeconfig.go` manage retrieving and merging kubeconfig data after cluster creation.
   - This is the main integration boundary with external Kubernetes tooling such as `kubectl`.
   - The user workflow is designed so a newly created cluster can be immediately made current by updating the local kubeconfig context.

12. **Environment and compatibility helpers**
   - `pkg/types/fixes/` contains shell assets used to patch runtime behavior inside containers, such as DNS, cgroupv2, and mount-related fixes.
   - `pkg/util/` and `pkg/runtimes/util/` hold reusable helpers for ports, YAML, labels, random strings, registry logic, and volume handling.
   - These are supporting layers that keep the runtime orchestration consistent across Docker/container edge cases.

13. **Validation, testing, and compatibility**
   - The repository has extensive tests under `pkg/config`, `pkg/client`, `pkg/runtimes/docker`, `cmd/util`, and end-to-end shell tests under `tests/`.
   - Versioned config schemas, migration tests, and matrix test scripts indicate backward compatibility and lifecycle reliability are major architectural concerns.
   - The `tools/` and `docgen/` directories support release/documentation generation rather than product runtime behavior.

14. **How to draw the architecture**
   - Model the system as: **User → CLI commands → client orchestration → runtime abstraction → Docker daemon → containers/network/volumes/proxy → k3s cluster**.
   - Put **config migration/validation** as a preprocessing path feeding the client layer.
   - Put **kubeconfig merge/get** as an output path back to the user’s local Kubernetes tooling.

Main entry points: [`cmd/root.go`](https://github.com/k3d-io/k3d/blob/main/cmd/root.go) (Root cmd), [`pkg/runtimes/docker/docker.go`](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/docker.go) (Docker backend), [`pkg/config/config.go`](https://github.com/k3d-io/k3d/blob/main/pkg/config/config.go) (Config core), [`pkg/types/types.go`](https://github.com/k3d-io/k3d/blob/main/pkg/types/types.go) (Intent model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_group_cli["CLI Layer"]
  node_main(("main.go<br/>entrypoint<br/>[main.go]"))
  node_cmd_root["Root cmd<br/>cli root<br/>[root.go]"]
  node_cmd_cluster["Cluster cmds<br/>cli subcommands<br/>[cluster.go]"]
  node_cmd_node["Node cmds<br/>cli subcommands<br/>[node.go]"]
  node_cmd_registry["Registry cmds<br/>cli subcommands<br/>[registry.go]"]
  node_cmd_config["Config cmds<br/>cli subcommands<br/>[config.go]"]
  node_cmd_kubeconfig["Kubeconfig cmds<br/>cli subcommands<br/>[kubeconfig.go]"]
  node_cmd_image["Image cmds<br/>cli subcommands<br/>[image.go]"]
  node_cmd_util["CLI utils<br/>helpers<br/>[util.go]"]
end

subgraph group_group_core["Core Domain"]
  node_types["Intent model<br/>domain types<br/>[types.go]"]
  node_nodehooks{{"Node hooks<br/>lifecycle hooks<br/>[nodehooks.go]"}}
end

subgraph group_group_config["Config Pipeline"]
  node_config_pipeline["Config core<br/>config pipeline<br/>[config.go]"]
  node_config_versions["Versioned schemas<br/>config versions<br/>[types.go]"]
  node_config_migrate["Migrate/merge<br/>config transform<br/>[migrate.go]"]
  node_config_validate["Validate<br/>config validation<br/>[validate.go]"]
end

subgraph group_group_client["Client Orchestration"]
  node_client["Client core<br/>orchestrator<br/>[cluster.go]"]
  node_client_cluster["Cluster flow<br/>client workflow<br/>[cluster.go]"]
  node_client_node["Node flow<br/>client workflow<br/>[node.go]"]
  node_client_registry["Registry flow<br/>client workflow<br/>[registry.go]"]
  node_client_kubeconfig["Kubeconfig flow<br/>client workflow<br/>[kubeconfig.go]"]
  node_client_loadbalancer["LB flow<br/>client workflow<br/>[loadbalancer.go]"]
  node_client_ipam["IPAM/ports<br/>client workflow<br/>[ipam.go]"]
end

subgraph group_group_runtime["Runtime Backend"]
  node_runtime_iface["Runtime API<br/>runtime interface<br/>[runtime.go]"]
  node_docker_runtime["Docker backend<br/>docker runtime<br/>[docker.go]"]
  node_docker_network["Network ops<br/>docker subsystem<br/>[network.go]"]
  node_docker_container["Container ops<br/>docker subsystem<br/>[container.go]"]
  node_docker_volume["Volume ops<br/>docker subsystem<br/>[volume.go]"]
  node_docker_image["Image ops<br/>docker subsystem<br/>[image.go]"]
  node_docker_host["Host info<br/>docker subsystem<br/>[host.go]"]
end

subgraph group_group_integration["External Integrations"]
  node_proxy["Nginx proxy<br/>proxy image"]
  node_kubeconfig_out["Local kubeconfig<br/>external output<br/>[kubeconfig.go]"]
  node_registry_flow[("Local registry<br/>external integration<br/>[registry.go]")]
end

node_main -->|"starts"| node_cmd_root
node_cmd_root -->|"registers"| node_cmd_cluster
node_cmd_root -->|"registers"| node_cmd_node
node_cmd_root -->|"registers"| node_cmd_registry
node_cmd_root -->|"registers"| node_cmd_config
node_cmd_root -->|"registers"| node_cmd_kubeconfig
node_cmd_root -->|"registers"| node_cmd_image
node_cmd_cluster -->|"delegates"| node_client_cluster
node_cmd_node -->|"delegates"| node_client_node
node_cmd_registry -->|"delegates"| node_client_registry
node_cmd_kubeconfig -->|"delegates"| node_client_kubeconfig
node_cmd_image -->|"delegates"| node_client
node_cmd_config -->|"uses"| node_config_pipeline
node_config_pipeline -->|"includes"| node_config_migrate
node_config_pipeline -->|"includes"| node_config_validate
node_config_migrate -->|"transitions"| node_config_versions
node_config_pipeline -->|"normalizes to"| node_types
node_client_cluster -->|"reads intent"| node_types
node_client_node -->|"reads intent"| node_types
node_client_registry -->|"reads intent"| node_types
node_client -->|"depends on"| node_runtime_iface
node_runtime_iface -->|"implemented by"| node_docker_runtime
node_docker_runtime -->|"manages"| node_docker_container
node_docker_runtime -->|"manages"| node_docker_network
node_docker_runtime -->|"manages"| node_docker_volume
node_docker_runtime -->|"manages"| node_docker_image
node_docker_runtime -->|"inspects"| node_docker_host
node_client_loadbalancer -->|"orchestrates"| node_proxy
node_client_kubeconfig -->|"writes"| node_kubeconfig_out
node_client_registry -->|"coordinates"| node_registry_flow
node_client_ipam -->|"allocates around"| node_docker_network
node_nodehooks -.->|"extends"| node_client_node

click node_main "https://github.com/k3d-io/k3d/blob/main/main.go"
click node_cmd_root "https://github.com/k3d-io/k3d/blob/main/cmd/root.go"
click node_cmd_cluster "https://github.com/k3d-io/k3d/blob/main/cmd/cluster/cluster.go"
click node_cmd_node "https://github.com/k3d-io/k3d/blob/main/cmd/node/node.go"
click node_cmd_registry "https://github.com/k3d-io/k3d/blob/main/cmd/registry/registry.go"
click node_cmd_config "https://github.com/k3d-io/k3d/blob/main/cmd/config/config.go"
click node_cmd_kubeconfig "https://github.com/k3d-io/k3d/blob/main/cmd/kubeconfig/kubeconfig.go"
click node_cmd_image "https://github.com/k3d-io/k3d/blob/main/cmd/image/image.go"
click node_cmd_util "https://github.com/k3d-io/k3d/blob/main/cmd/util/util.go"
click node_types "https://github.com/k3d-io/k3d/blob/main/pkg/types/types.go"
click node_nodehooks "https://github.com/k3d-io/k3d/blob/main/pkg/actions/nodehooks.go"
click node_config_pipeline "https://github.com/k3d-io/k3d/blob/main/pkg/config/config.go"
click node_config_versions "https://github.com/k3d-io/k3d/blob/main/pkg/config/v1alpha5/types.go"
click node_config_migrate "https://github.com/k3d-io/k3d/blob/main/pkg/config/migrate.go"
click node_config_validate "https://github.com/k3d-io/k3d/blob/main/pkg/config/validate.go"
click node_client "https://github.com/k3d-io/k3d/blob/main/pkg/client/cluster.go"
click node_client_cluster "https://github.com/k3d-io/k3d/blob/main/pkg/client/cluster.go"
click node_client_node "https://github.com/k3d-io/k3d/blob/main/pkg/client/node.go"
click node_client_registry "https://github.com/k3d-io/k3d/blob/main/pkg/client/registry.go"
click node_client_kubeconfig "https://github.com/k3d-io/k3d/blob/main/pkg/client/kubeconfig.go"
click node_client_loadbalancer "https://github.com/k3d-io/k3d/blob/main/pkg/client/loadbalancer.go"
click node_client_ipam "https://github.com/k3d-io/k3d/blob/main/pkg/client/ipam.go"
click node_runtime_iface "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/runtime.go"
click node_docker_runtime "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/docker.go"
click node_docker_network "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/network.go"
click node_docker_container "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/container.go"
click node_docker_volume "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/volume.go"
click node_docker_image "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/image.go"
click node_docker_host "https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/host.go"
click node_proxy "https://github.com/k3d-io/k3d/tree/main/proxy/nginx-proxy"
click node_kubeconfig_out "https://github.com/k3d-io/k3d/blob/main/pkg/client/kubeconfig.go"
click node_registry_flow "https://github.com/k3d-io/k3d/blob/main/pkg/types/registry.go"

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_main,node_cmd_root,node_cmd_cluster,node_cmd_node,node_cmd_registry,node_cmd_config,node_cmd_kubeconfig,node_cmd_image,node_cmd_util toneBlue
class node_types,node_nodehooks toneAmber
class node_config_pipeline,node_config_versions,node_config_migrate,node_config_validate toneMint
class node_client,node_client_cluster,node_client_node,node_client_registry,node_client_kubeconfig,node_client_loadbalancer,node_client_ipam toneRose
class node_runtime_iface,node_docker_runtime,node_docker_network,node_docker_container,node_docker_volume,node_docker_image,node_docker_host toneIndigo
class node_proxy,node_kubeconfig_out,node_registry_flow toneTeal
```

## Components

### CLI Layer

User-facing commands, argument parsing, and output helpers.

- [main.go](https://github.com/k3d-io/k3d/blob/main/main.go): entrypoint · Program startup entry point. · `main.go`
- [Root cmd](https://github.com/k3d-io/k3d/blob/main/cmd/root.go): cli root · Top-level CLI wiring and subcommand registration. · `cmd/root.go`
- [Cluster cmds](https://github.com/k3d-io/k3d/blob/main/cmd/cluster/cluster.go): cli subcommands · Create, delete, edit, list, start, and stop clusters. · `cmd/cluster/cluster.go`
- [Node cmds](https://github.com/k3d-io/k3d/blob/main/cmd/node/node.go): cli subcommands · Create, delete, edit, list, start, and stop nodes. · `cmd/node/node.go`
- [Registry cmds](https://github.com/k3d-io/k3d/blob/main/cmd/registry/registry.go): cli subcommands · Create, delete, list, start, and stop registries. · `cmd/registry/registry.go`
- [Config cmds](https://github.com/k3d-io/k3d/blob/main/cmd/config/config.go): cli subcommands · Init, migrate, and view configuration files. · `cmd/config/config.go`
- [Kubeconfig cmds](https://github.com/k3d-io/k3d/blob/main/cmd/kubeconfig/kubeconfig.go): cli subcommands · Get and merge kubeconfig output for clusters. · `cmd/kubeconfig/kubeconfig.go`
- [Image cmds](https://github.com/k3d-io/k3d/blob/main/cmd/image/image.go): cli subcommands · Import images into the local k3d environment. · `cmd/image/image.go`
- [CLI utils](https://github.com/k3d-io/k3d/blob/main/cmd/util/util.go): helpers · Shared helpers for output, filtering, completions, ports, and config handling. · `cmd/util/util.go`

### Core Domain

Shared types and behavior models used across the app.

- [Intent model](https://github.com/k3d-io/k3d/blob/main/pkg/types/types.go): domain types · Core cluster, node, registry, load balancer, image, and K3s metadata types. · `pkg/types/types.go`
- [Node hooks](https://github.com/k3d-io/k3d/blob/main/pkg/actions/nodehooks.go): lifecycle hooks · Hook points for node lifecycle behavior. · `pkg/actions/nodehooks.go`

### Config Pipeline

Versioned config ingestion, normalization, and validation.

- [Config core](https://github.com/k3d-io/k3d/blob/main/pkg/config/config.go): config pipeline · Orchestrates config processing from raw input to normalized state. · `pkg/config/config.go`
- [Versioned schemas](https://github.com/k3d-io/k3d/blob/main/pkg/config/v1alpha5/types.go): config versions · Versioned config types and migration schemas across releases. · `pkg/config/v1alpha5/types.go`
- [Migrate/merge](https://github.com/k3d-io/k3d/blob/main/pkg/config/migrate.go): config transform · Merges, transforms, and migrates config between versions. · `pkg/config/migrate.go`
- [Validate](https://github.com/k3d-io/k3d/blob/main/pkg/config/validate.go): config validation · Validates processed config before cluster operations. · `pkg/config/validate.go`

### Client Orchestration

High-level coordination between commands and runtime operations.

- [Client core](https://github.com/k3d-io/k3d/blob/main/pkg/client/cluster.go): orchestrator · Main coordination boundary between CLI intent and runtime actions. · `pkg/client/cluster.go`
- [Cluster flow](https://github.com/k3d-io/k3d/blob/main/pkg/client/cluster.go): client workflow · Cluster lifecycle orchestration. · `pkg/client/cluster.go`
- [Node flow](https://github.com/k3d-io/k3d/blob/main/pkg/client/node.go): client workflow · Node lifecycle orchestration. · `pkg/client/node.go`
- [Registry flow](https://github.com/k3d-io/k3d/blob/main/pkg/client/registry.go): client workflow · Registry lifecycle orchestration. · `pkg/client/registry.go`
- [Kubeconfig flow](https://github.com/k3d-io/k3d/blob/main/pkg/client/kubeconfig.go): client workflow · Retrieves and merges kubeconfig data. · `pkg/client/kubeconfig.go`
- [LB flow](https://github.com/k3d-io/k3d/blob/main/pkg/client/loadbalancer.go): client workflow · Coordinates load balancer and exposure setup. · `pkg/client/loadbalancer.go`
- [IPAM/ports](https://github.com/k3d-io/k3d/blob/main/pkg/client/ipam.go): client workflow · Manages address allocation and port coordination. · `pkg/client/ipam.go`

### Runtime Backend

Runtime abstraction and Docker implementation.

- [Runtime API](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/runtime.go): runtime interface · Shared runtime contract and error types. · `pkg/runtimes/runtime.go`
- [Docker backend](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/docker.go): docker runtime · Concrete runtime implementation over Docker. · `pkg/runtimes/docker/docker.go`
- [Network ops](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/network.go): docker subsystem · Creates and manages Docker networks. · `pkg/runtimes/docker/network.go`
- [Container ops](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/container.go): docker subsystem · Creates, starts, stops, and inspects containers. · `pkg/runtimes/docker/container.go`
- [Volume ops](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/volume.go): docker subsystem · Manages Docker volumes used by clusters and nodes. · `pkg/runtimes/docker/volume.go`
- [Image ops](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/image.go): docker subsystem · Handles image import and image inspection in Docker. · `pkg/runtimes/docker/image.go`
- [Host info](https://github.com/k3d-io/k3d/blob/main/pkg/runtimes/docker/host.go): docker subsystem · Reads host and Docker environment details. · `pkg/runtimes/docker/host.go`

### External Integrations

Proxying, kubeconfig output, and local registry/image flows.

- [Nginx proxy](https://github.com/k3d-io/k3d/tree/main/proxy/nginx-proxy): proxy image · Traffic entry proxy for exposed cluster services. · `proxy/nginx-proxy`
- [Local kubeconfig](https://github.com/k3d-io/k3d/blob/main/pkg/client/kubeconfig.go): external output · Merged kubeconfig written back for kubectl use. · `pkg/client/kubeconfig.go`
- [Local registry](https://github.com/k3d-io/k3d/blob/main/pkg/types/registry.go): external integration · Registry support for local dev workflows and image pulls. · `pkg/types/registry.go`

## Connections

- main.go → Root cmd: starts · Program entry initializes the CLI command tree.
- Root cmd → Cluster cmds: registers · Root command exposes cluster lifecycle subcommands.
- Root cmd → Node cmds: registers · Root command exposes node lifecycle subcommands.
- Root cmd → Registry cmds: registers · Root command exposes registry subcommands.
- Root cmd → Config cmds: registers · Root command exposes config subcommands.
- Root cmd → Kubeconfig cmds: registers · Root command exposes kubeconfig subcommands.
- Root cmd → Image cmds: registers · Root command exposes image import subcommands.
- Cluster cmds → Cluster flow: delegates · Cluster commands translate user intent into client workflows.
- Node cmds → Node flow: delegates · Node commands delegate lifecycle operations.
- Registry cmds → Registry flow: delegates · Registry commands delegate registry lifecycle operations.
- Kubeconfig cmds → Kubeconfig flow: delegates · Kubeconfig commands request get/merge behavior from the client.
- Image cmds → Client core: delegates · Image import uses the client coordination boundary.
- Config cmds → Config core: uses · Config commands invoke parsing, migration, and validation.
- Config core → Migrate/merge: includes · Processing includes version migration and merging.
- Config core → Validate: includes · Processing validates normalized config.
- Migrate/merge → Versioned schemas: transitions · Migration moves config across versioned schemas.
- Config core → Intent model: normalizes to · Processed config becomes internal intent and topology types.
- Cluster flow → Intent model: reads intent · Cluster orchestration is driven by the domain intent model.
- Node flow → Intent model: reads intent · Node orchestration is driven by the domain intent model.
- Registry flow → Intent model: reads intent · Registry orchestration is driven by the domain intent model.
- Client core → Runtime API: depends on · Client coordinates work through the runtime contract.
- Runtime API → Docker backend: implemented by · Docker is the concrete runtime backend.
- Docker backend → Container ops: manages · Runtime provisions and controls containers.
- Docker backend → Network ops: manages · Runtime creates and wires Docker networks.
- Docker backend → Volume ops: manages · Runtime provisions persistent volumes.
- Docker backend → Image ops: manages · Runtime imports and inspects images.
- Docker backend → Host info: inspects · Runtime discovers host and daemon capabilities.
- LB flow → Nginx proxy: orchestrates · Client sets up the proxy entrypoint for service exposure.
- Kubeconfig flow → Local kubeconfig: writes · Kubeconfig operations return local client config.
- Registry flow → Local registry: coordinates · Registry workflow integrates local registry support.
- IPAM/ports → Network ops: allocates around · IP and port logic is tied to Docker networking.
- Node hooks → Node flow: extends · Lifecycle hooks augment node orchestration.
