pub struct ContainerUpOpts<'a> {
pub args: Option<Vec<&'a str>>,
pub dagger_in_dagger_new_session: Option<bool>,
pub disable_dagger_in_dagger: Option<bool>,
pub expand: Option<bool>,
pub experimental_privileged_nesting: Option<bool>,
pub insecure_root_capabilities: Option<bool>,
pub no_init: Option<bool>,
pub ports: Option<Vec<PortForward>>,
pub random: Option<bool>,
pub use_entrypoint: Option<bool>,
}Fields§
§args: Option<Vec<&'a str>>Command to run instead of the container’s default command (e.g., [“go”, “run”, “main.go”]). If empty, the container’s default command is used.
dagger_in_dagger_new_session: Option<bool>Connect Dagger clients started by the command to the current engine as new sessions, instead of as clients of the current session. Each connection gets its own session, released when that client closes. The command reaches the engine through DAGGER_ENGINE, so SDKs run a Dagger CLI: set _EXPERIMENTAL_DAGGER_CLI_BIN to one in the container, or let the SDK download one. Cannot be combined with “disableDaggerInDagger”.
disable_dagger_in_dagger: Option<bool>Disable Dagger API access for the executed command. By default, commands can connect to the current Dagger engine.
expand: Option<bool>Replace “${VAR}” or “$VAR” in the args according to the current environment variables defined in the container (e.g. “/$VAR/foo”).
experimental_privileged_nesting: Option<bool>§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.
no_init: Option<bool>If set, skip the automatic init process injected into containers by default. This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
ports: Option<Vec<PortForward>>List of frontend/backend port mappings to forward. Frontend is the port accepting traffic on the host, backend is the service port.
random: Option<bool>Bind each tunnel port to a random port on the host.
use_entrypoint: Option<bool>If the container has an entrypoint, prepend it to the args.
Trait Implementations§
Source§impl<'a> Debug for ContainerUpOpts<'a>
impl<'a> Debug for ContainerUpOpts<'a>
Source§impl<'a> PartialEq for ContainerUpOpts<'a>
impl<'a> PartialEq for ContainerUpOpts<'a>
impl<'a> StructuralPartialEq for ContainerUpOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContainerUpOpts<'a>
impl<'a> RefUnwindSafe for ContainerUpOpts<'a>
impl<'a> Send for ContainerUpOpts<'a>
impl<'a> Sync for ContainerUpOpts<'a>
impl<'a> Unpin for ContainerUpOpts<'a>
impl<'a> UnsafeUnpin for ContainerUpOpts<'a>
impl<'a> UnwindSafe for ContainerUpOpts<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more