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_
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.