pub struct DockerStartBuilder { /* private fields */ }Expand description
A dockerStart mutation being assembled — see Client::docker_start.
Implementations§
Source§impl DockerStartBuilder
impl DockerStartBuilder
Sourcepub fn mount(self, spec: impl Into<String>) -> Self
pub fn mount(self, spec: impl Into<String>) -> Self
Share a host directory into the VM, so -v can reach it: PATH (same
path in the guest) or HOST:GUEST. Repeatable.
Sourcepub fn publish_bind(self, bind: impl Into<String>) -> Self
pub fn publish_bind(self, bind: impl Into<String>) -> Self
Where published container ports bind on the host: mirror (default —
what the container asked for) or a fixed address.
Sourcepub fn disk_size(self, size: impl Into<String>) -> Self
pub fn disk_size(self, size: impl Into<String>) -> Self
Give the image store a dedicated disk of this size, e.g. 60G. Only
applies when the VM is created.
Sourcepub fn launch(self) -> Result<DockerStatus>
pub fn launch(self) -> Result<DockerStatus>
Start the engine and return its status once dockerd answers.
Auto Trait Implementations§
impl Freeze for DockerStartBuilder
impl RefUnwindSafe for DockerStartBuilder
impl Send for DockerStartBuilder
impl Sync for DockerStartBuilder
impl Unpin for DockerStartBuilder
impl UnsafeUnpin for DockerStartBuilder
impl UnwindSafe for DockerStartBuilder
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