Type Alias: ContainerWithExecOpts
ContainerWithExecOpts =
object
Properties​
expand?​
optionalexpand:boolean
Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
expect?​
optionalexpect:ReturnType
Exit codes this command is allowed to exit with without error
experimentalPrivilegedNesting?​
optionalexperimentalPrivilegedNesting:boolean
Provides Dagger access to the executed command.
insecureRootCapabilities?​
optionalinsecureRootCapabilities:boolean
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.
noInit?​
optionalnoInit:boolean
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.
redirectStderr?​
optionalredirectStderr:string
Redirect the command's standard error to a file in the container. Example: "./stderr.txt"
redirectStdin?​
optionalredirectStdin:string
Redirect the command's standard input from a file in the container. Example: "./stdin.txt"
redirectStdout?​
optionalredirectStdout:string
Redirect the command's standard output to a file in the container. Example: "./stdout.txt"
stdin?​
optionalstdin:string
Content to write to the command's standard input. Example: "Hello world")
useEntrypoint?​
optionaluseEntrypoint:boolean
Apply the OCI entrypoint, if present, by prepending it to the args. Ignored by default.