Expand description
Metadata helpers for isolated executions.
Builds the human-readable [Isolation] status lines and the execution
record options map that describe how an isolated command was launched,
including the configurable Docker runtime options (volumes, mounts,
environment variables, privileged mode). Kept separate from isolation
so the runtime backends and the metadata representation can evolve
independently.
Functionsยง
- build_
isolation_ options_ map - Build the execution-record options map describing how an isolated command
was launched (environment, mode, session, image, docker runtime options,
endpoint, user, keep-alive). Used to persist the execution record so it can
be surfaced via
--status/--list. - docker_
attribution_ labels - Container labels are immutable, so resume counters describe container creation. Snapshot containers get new attribution; in-place restarts retain their labels.
- docker_
runtime_ metadata - Build the execution-record metadata entries for docker runtime options.
Returns
(key, value)pairs to merge into the options map; empty collections and a falseprivilegedflag contribute no entries. - docker_
runtime_ status_ lines - Build the human-readable
[Isolation]status lines for docker runtime options (volumes, mounts, env, privileged). Used for the start block and log header; empty collections contribute no lines. - docker_
runtime_ status_ lines_ for_ options - Build Docker runtime status lines directly from parsed wrapper options.
- recovery_
metadata - Execution-record metadata for launch-time kill recovery (issue #176).
- recovery_
metadata_ with_ delay recovery_metadataplus the normalizedonKillResumeDelayrange (issue #181), stored only when it is not zero.- recovery_
status_ lines [Isolation]line announcing launch-time kill recovery (issue #176). A recovery command on its own implies one attempt.- recovery_
status_ lines_ with_ delay recovery_status_linesthat also names the random delay before each resume (issue #181).