The engine
The Core drives the container engine through the engine's own API, and through no composition tool. Podman running rootless is the reference engine; Docker is supported.
Reaching it
| the address | engine in core.yaml: unix:// and a path. Anything else is refused before anything is dialled |
| the API | the engine API at version 1.41, which Podman 4.9 and Docker 28 and later serve |
| which engine | asked of the engine: Podman names its component Podman Engine |
| whether rootless | asked of the engine: a rootless one names rootless among its security options |
No engine is looked for where no unit names an image. Where one does, the engine is reached before the units are launched:
| The engine at the start | Is |
|---|---|
| cannot be reached | engine.unreachable — refused, and the Core does not start |
| running as root | engine.rootful — a weaker arrangement, said at the start and listed whenever the instance is read |
| rootless | nothing to say |
A root-owned engine is legitimate and weaker: anyone who may reach its socket can run a container as root.
What the Core asks of it
| The Core asks the engine to | When |
|---|---|
create a container from the image's digest, with the mounts, the identity, the groups, the environment and the instance's slice yoke-<instance>.slice as its parent | at launch |
| attach to its output, before it starts | at launch |
| start it | at launch |
| report its events — how the Core learns a container ended, and with what status | continuously |
| stop it, waiting the stop window, then kill it | at an ordinary stop |
| remove it | once it ended, and at startup for anything a previous life left |
- The Core never pulls an image. In the service form the administrator places it in the engine's store with the engine's own tools. A launch whose image is absent is a failed launch, and the restart policy waits as for any other.
- Every container is labelled
dev.yoke-project.instance,dev.yoke-project.unitanddev.yoke-project.incarnation. - At startup, every container under the instance's label is stopped and removed before the units are launched, each one named. An engine that cannot be asked, or a container it will not remove, stops the start.
- A unit's output is captured into the log store, under the incarnation that wrote it, exactly as a unit's on the host.
When the engine goes quiet
An engine whose event stream ends is quiet, and nothing is concluded about the units on it. Each
unit with a container running keeps its state and carries the condition that it cannot be observed,
graded 30 by the Core, with the moment it began. A unit that has concluded, or has no container, is
not affected. An operation that needs the engine fails, naming the container backend.
Its return is learnt from a notification, never on a clock: the engine's socket bound again at its path, or a launch that reaches it. Followed again, the engine is asked what runs under the label:
| Under the label | Concluded |
|---|---|
| a container that ended while away | its end, with the status the engine kept; it is removed |
| one still running | nothing: it is attached again |
| one the engine no longer holds | its end, with no status |
| one nobody launched | nothing: it is removed |
What a container wrote while the engine was away is not recovered.
A managed interface in a container
- It reaches the local channel the Core bound for it, from inside the container, and keeps the standing right to reclaim control a local channel has.
- When its container stops, its channel is detached and arbitration is recomputed: nothing stays suspended in favour of a channel nobody holds.
- A container that runs while its client has wedged keeps its connection open; liveness answers it, as for any client.
Yoke does not build images, and does not require containers. A unit on the host is the cheaper case.