Skip to main content
Version: 0.15.0

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 addressengine in core.yaml: unix:// and a path. Anything else is refused before anything is dialled
the APIthe engine API at version 1.41, which Podman 4.9 and Docker 28 and later serve
which engineasked of the engine: Podman names its component Podman Engine
whether rootlessasked 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 startIs
cannot be reachedengine.unreachable — refused, and the Core does not start
running as rootengine.rootful — a weaker arrangement, said at the start and listed whenever the instance is read
rootlessnothing 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 toWhen
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 parentat launch
attach to its output, before it startsat launch
start itat launch
report its events — how the Core learns a container ended, and with what statuscontinuously
stop it, waiting the stop window, then kill itat an ordinary stop
remove itonce it ended, and at startup for anything a previous life left
  • One launch is asked of the engine at a time: a container is created, attached and started before the next is created. Events, stops and removals are asked as they come and never wait behind a launch.
  • 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.unit and dev.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 labelConcluded
a container that ended while awayits end, with the status the engine kept; it is removed
one still runningnothing: it is attached again
one the engine no longer holdsits end, with no status
one nobody launchednothing: 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.