pub struct ContainerWithExecOpts<'a> {
pub expand: Option<bool>,
pub expect: Option<ReturnType>,
pub experimental_privileged_nesting: Option<bool>,
pub insecure_root_capabilities: Option<bool>,
pub no_init: Option<bool>,
pub redirect_stderr: Option<&'a str>,
pub redirect_stdin: Option<&'a str>,
pub redirect_stdout: Option<&'a str>,
pub stdin: Option<&'a str>,
pub use_entrypoint: Option<bool>,
}
Fields§
§expand: Option<bool>
Replace “${VAR}” or “$VAR” in the args according to the current environment variables defined in the container (e.g. “/$VAR/foo”).
expect: Option<ReturnType>
Exit codes this command is allowed to exit with without error
experimental_privileged_nesting: Option<bool>
Provides Dagger access to the executed command.
insecure_root_capabilities: Option<bool>
Execute the command with all root capabilities. Like –privileged in Docker DANGER: this grants the command full access to the host system. Only use when 1) you trust the command being executed and 2) you specifically need this level of access.
no_init: Option<bool>
Skip the automatic init process injected into containers by default. Only use this if you specifically need the command to be pid 1 in the container. Otherwise it may result in unexpected behavior. If you’re not sure, you don’t need this.
redirect_stderr: Option<&'a str>
Redirect the command’s standard error to a file in the container. Example: “./stderr.txt”
redirect_stdin: Option<&'a str>
Redirect the command’s standard input from a file in the container. Example: “./stdin.txt”
redirect_stdout: Option<&'a str>
Redirect the command’s standard output to a file in the container. Example: “./stdout.txt”
stdin: Option<&'a str>
Content to write to the command’s standard input. Example: “Hello world”)
use_entrypoint: Option<bool>
Apply the OCI entrypoint, if present, by prepending it to the args. Ignored by default.