Struct dagger_sdk::ContainerWithExecOpts
source · pub struct ContainerWithExecOpts<'a> {
pub stdin: Option<&'a str>,
pub redirect_stdout: Option<&'a str>,
pub redirect_stderr: Option<&'a str>,
pub experimental_privileged_nesting: Option<bool>,
pub insecure_root_capabilities: Option<bool>,
}Fields§
§stdin: Option<&'a str>Content to write to the command’s standard input before closing (e.g., “Hello world”).
redirect_stdout: Option<&'a str>Redirect the command’s standard output to a file in the container (e.g., “/tmp/stdout”).
redirect_stderr: Option<&'a str>Redirect the command’s standard error to a file in the container (e.g., “/tmp/stderr”).
experimental_privileged_nesting: Option<bool>Provides dagger access to the executed command. Do not use this option unless you trust the command being executed. The command being executed WILL BE GRANTED FULL ACCESS TO YOUR HOST FILESYSTEM.
insecure_root_capabilities: Option<bool>Execute the command with all root capabilities. This is similar to running a command
with “sudo” or executing docker run with the --privileged flag. Containerization
does not provide any security guarantees when using this option. It should only be used
when absolutely necessary and only with trusted commands.
Trait Implementations§
source§impl<'a> Debug for ContainerWithExecOpts<'a>
impl<'a> Debug for ContainerWithExecOpts<'a>
source§impl<'a> PartialEq<ContainerWithExecOpts<'a>> for ContainerWithExecOpts<'a>
impl<'a> PartialEq<ContainerWithExecOpts<'a>> for ContainerWithExecOpts<'a>
source§fn eq(&self, other: &ContainerWithExecOpts<'a>) -> bool
fn eq(&self, other: &ContainerWithExecOpts<'a>) -> bool
self and other values to be equal, and is used
by ==.