pub struct IsolationOptions {Show 31 fields
pub session: Option<String>,
pub image: Option<String>,
pub volumes: Vec<String>,
pub mounts: Vec<String>,
pub env: Vec<String>,
pub labels: Vec<String>,
pub uuid: Option<String>,
pub root_session: Option<String>,
pub resume_count: u32,
pub privileged: bool,
pub init: bool,
pub network: Option<String>,
pub networks: Vec<String>,
pub network_aliases: Vec<String>,
pub resource_limits: Vec<String>,
pub cpu_penalty_config: Option<Config>,
pub on_kill_resume: Option<u32>,
pub recovery_command: Option<String>,
pub endpoint: Option<String>,
pub detached: bool,
pub user: Option<String>,
pub keep_alive: bool,
pub auto_remove_docker_container: bool,
pub always_cleanup_container: bool,
pub keep_container: bool,
pub keep_container_on_fail: bool,
pub shell: String,
pub log_path: Option<PathBuf>,
pub execution_id: Option<String>,
pub defer_completion_watcher: bool,
pub attempt_number: u64,
}Expand description
Options for isolation
Fields§
§session: Option<String>Session name
image: Option<String>Docker image
volumes: Vec<String>Docker bind mounts/volumes (-v/–volume)
mounts: Vec<String>Docker –mount specs
env: Vec<String>Docker environment variables (-e/–env, KEY=VALUE)
labels: Vec<String>§uuid: Option<String>§root_session: Option<String>§resume_count: u32§privileged: boolRun docker container in privileged mode
init: booldocker run --init: tini as PID 1 reaps orphans (issue #244)
network: Option<String>First Docker network name (compatibility accessor)
networks: Vec<String>Ordered Docker network names
network_aliases: Vec<String>Docker network-scoped aliases
resource_limits: Vec<String>Docker resource limits in --flag=value form (issue #176)
cpu_penalty_config: Option<Config>§on_kill_resume: Option<u32>Resume up to N times when the docker main process is killed (issue #176)
recovery_command: Option<String>Command run in the same container on such a resume (issue #176)
endpoint: Option<String>SSH endpoint
detached: boolRun in detached mode
user: Option<String>User to run command as
keep_alive: boolKeep environment alive after command exits
auto_remove_docker_container: boolAuto-remove docker container after exit
always_cleanup_container: boolForce docker container cleanup after exit
keep_container: boolKeep docker container filesystem after exit
keep_container_on_fail: boolKeep docker container filesystem when command fails or OOM-kills
shell: StringShell to use in isolation environments: auto, bash, zsh, sh
log_path: Option<PathBuf>Log path where isolation backends should append live output
execution_id: Option<String>UUID of the execution record a detached backend must finalize once the
session ends (issue #170.1). None disables store bookkeeping.
defer_completion_watcher: boolExplicit resume attaches only after saving its new attempt.
attempt_number: u64START_ATTEMPT of the launched command (issue #230); 0 means 1.