Docker module
Layer 8. Node. Node
Source: modules/docker/.
At a glance
Section titled “At a glance”| CLI | none |
| Subcommands | 0 |
| HTTP endpoints | see the route reference |
| Events emitted | see the event reference |
| Error codes | see the error code reference |
| Service classes | none |
| Cross-module deps | app, events, node |
Source layout
Section titled “Source layout”| File | Responsibility |
|---|---|
service.go | Docker API client and compose runner |
service_labels.go | Container labels |
events.go | Event handling |
router.go | HTTP routes |
Errors
Section titled “Errors”Typed errors are catalogued in the error code reference with HTTP statuses and message templates.
Responsibilities
Section titled “Responsibilities”The docker module wraps a Docker API client and a compose subprocess
runner. Its Service provides container operations and image pulls;
callers share that boundary through dependency injection. Sources:
CE modules/docker/service.go and interfaces.go.
Swarm is refused (X400422CLSRUN in modules/cluster/errors.go). This module does not drive it.
Deployment rendering and lifecycle orchestration live in the
app module. Runtime executors live under CE core/executor.
shc@docs:~$