pub struct IsolationOptions {Show 20 fields
pub session: Option<String>,
pub image: Option<String>,
pub volumes: Vec<String>,
pub mounts: Vec<String>,
pub env: Vec<String>,
pub privileged: bool,
pub network: Option<String>,
pub networks: Vec<String>,
pub network_aliases: Vec<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>,
}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)
privileged: boolRun docker container in privileged mode
network: Option<String>First Docker network name (compatibility accessor)
networks: Vec<String>Ordered Docker network names
network_aliases: Vec<String>Docker network-scoped aliases
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.
Trait Implementations§
Source§impl Clone for IsolationOptions
impl Clone for IsolationOptions
Source§fn clone(&self) -> IsolationOptions
fn clone(&self) -> IsolationOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more