pub struct ComposeCreateCommand {
pub config: ComposeConfig,
pub build: bool,
pub no_build: bool,
pub force_recreate: bool,
pub no_recreate: bool,
pub pull: Option<PullPolicy>,
pub remove_orphans: bool,
pub services: Vec<String>,
}
Expand description
Docker Compose create command
Create services without starting them.
Fields§
§config: ComposeConfig
Base configuration
build: bool
Build images before creating containers
no_build: bool
Don’t build images, even if missing
force_recreate: bool
Force recreate containers
no_recreate: bool
Don’t recreate containers if they exist
pull: Option<PullPolicy>
Pull images before creating
remove_orphans: bool
Remove orphaned containers
services: Vec<String>
Services to create
Implementations§
Source§impl ComposeCreateCommand
impl ComposeCreateCommand
Sourcepub fn project_name(self, name: impl Into<String>) -> Self
pub fn project_name(self, name: impl Into<String>) -> Self
Set project name
Sourcepub fn force_recreate(self) -> Self
pub fn force_recreate(self) -> Self
Force recreate containers
Sourcepub fn no_recreate(self) -> Self
pub fn no_recreate(self) -> Self
Don’t recreate containers
Sourcepub fn pull(self, policy: PullPolicy) -> Self
pub fn pull(self, policy: PullPolicy) -> Self
Set pull policy
Sourcepub fn remove_orphans(self) -> Self
pub fn remove_orphans(self) -> Self
Remove orphaned containers
Trait Implementations§
Source§impl Clone for ComposeCreateCommand
impl Clone for ComposeCreateCommand
Source§fn clone(&self) -> ComposeCreateCommand
fn clone(&self) -> ComposeCreateCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ComposeCommandV2 for ComposeCreateCommand
impl ComposeCommandV2 for ComposeCreateCommand
Source§type Output = CreateResult
type Output = CreateResult
The output type this command produces
Source§fn get_config(&self) -> &ComposeConfig
fn get_config(&self) -> &ComposeConfig
Get the compose configuration
Source§fn get_config_mut(&mut self) -> &mut ComposeConfig
fn get_config_mut(&mut self) -> &mut ComposeConfig
Get mutable compose configuration
Source§fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute compose command with given arguments
Source§impl Debug for ComposeCreateCommand
impl Debug for ComposeCreateCommand
Source§impl Default for ComposeCreateCommand
impl Default for ComposeCreateCommand
Source§fn default() -> ComposeCreateCommand
fn default() -> ComposeCreateCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeCreateCommand
impl RefUnwindSafe for ComposeCreateCommand
impl Send for ComposeCreateCommand
impl Sync for ComposeCreateCommand
impl Unpin for ComposeCreateCommand
impl UnwindSafe for ComposeCreateCommand
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
Mutably borrows from an owned value. Read more