pub struct ComposeUpCommand {Show 21 fields
pub executor: CommandExecutor,
pub config: ComposeConfig,
pub services: Vec<String>,
pub detach: bool,
pub no_deps: bool,
pub force_recreate: bool,
pub always_recreate_deps: bool,
pub no_recreate: bool,
pub no_build: bool,
pub no_start: bool,
pub build: bool,
pub remove_orphans: bool,
pub scale: Vec<(String, u32)>,
pub timeout: Option<Duration>,
pub exit_code_from: Option<String>,
pub abort_on_container_exit: bool,
pub attach_dependencies: bool,
pub renew_anon_volumes: bool,
pub wait: bool,
pub wait_timeout: Option<Duration>,
pub pull: Option<PullPolicy>,
}
Expand description
Docker Compose up command builder
Fields§
§executor: CommandExecutor
Base command executor
config: ComposeConfig
Base compose configuration
services: Vec<String>
Services to start (empty for all)
detach: bool
Run in detached mode
no_deps: bool
Don’t start linked services
force_recreate: bool
Force recreate containers
always_recreate_deps: bool
Recreate containers even if configuration unchanged
no_recreate: bool
Don’t recreate containers
no_build: bool
Don’t build images
no_start: bool
Don’t start services
build: bool
Build images before starting
remove_orphans: bool
Remove orphan containers
scale: Vec<(String, u32)>
Scale SERVICE to NUM instances
timeout: Option<Duration>
Timeout for container shutdown
exit_code_from: Option<String>
Exit code from first container that stops
abort_on_container_exit: bool
Abort if containers are stopped
attach_dependencies: bool
Attach to dependent containers
renew_anon_volumes: bool
Recreate anonymous volumes
wait: bool
Wait for services to be healthy
wait_timeout: Option<Duration>
Maximum wait timeout
pull: Option<PullPolicy>
Pull image policy
Implementations§
Source§impl ComposeUpCommand
impl ComposeUpCommand
Sourcepub fn force_recreate(self) -> Self
pub fn force_recreate(self) -> Self
Force recreate containers
Sourcepub fn always_recreate_deps(self) -> Self
pub fn always_recreate_deps(self) -> Self
Always recreate dependent containers
Sourcepub fn no_recreate(self) -> Self
pub fn no_recreate(self) -> Self
Don’t recreate containers
Sourcepub fn remove_orphans(self) -> Self
pub fn remove_orphans(self) -> Self
Remove orphan containers
Sourcepub fn scale(self, service: impl Into<String>, instances: u32) -> Self
pub fn scale(self, service: impl Into<String>, instances: u32) -> Self
Scale a service to a specific number of instances
Sourcepub fn exit_code_from(self, service: impl Into<String>) -> Self
pub fn exit_code_from(self, service: impl Into<String>) -> Self
Use exit code from specific container
Sourcepub fn abort_on_container_exit(self) -> Self
pub fn abort_on_container_exit(self) -> Self
Abort when containers stop
Sourcepub fn attach_dependencies(self) -> Self
pub fn attach_dependencies(self) -> Self
Attach to dependent containers
Sourcepub fn renew_anon_volumes(self) -> Self
pub fn renew_anon_volumes(self) -> Self
Recreate anonymous volumes
Sourcepub fn wait_timeout(self, timeout: Duration) -> Self
pub fn wait_timeout(self, timeout: Duration) -> Self
Set maximum wait timeout
Sourcepub fn pull(self, policy: PullPolicy) -> Self
pub fn pull(self, policy: PullPolicy) -> Self
Set pull policy
Trait Implementations§
Source§impl Clone for ComposeUpCommand
impl Clone for ComposeUpCommand
Source§fn clone(&self) -> ComposeUpCommand
fn clone(&self) -> ComposeUpCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ComposeCommand for ComposeUpCommand
impl ComposeCommand for ComposeUpCommand
Source§fn get_config(&self) -> &ComposeConfig
fn get_config(&self) -> &ComposeConfig
Source§fn get_config_mut(&mut self) -> &mut ComposeConfig
fn get_config_mut(&mut self) -> &mut ComposeConfig
Source§fn subcommand(&self) -> &'static str
fn subcommand(&self) -> &'static str
Source§fn build_subcommand_args(&self) -> Vec<String>
fn build_subcommand_args(&self) -> Vec<String>
Source§fn build_command_args(&self) -> Vec<String>
fn build_command_args(&self) -> Vec<String>
(This provides the implementation for
DockerCommandV2::build_command_args
)