[−][src]Struct docker_command::Docker
Base container command used for building and running containers.
This allows variations such as "docker", "sudo docker", and "podman".
Fields
sudo: boolIf true, run the command with sudo. Defaults to false.
program: PathBufThe container command. The default is "docker", but can be changed to another compatible program such as "podman".
Implementations
impl Docker[src]
pub fn new() -> Self[src]
Create a new Docker instance with the default values set.
pub fn command(&self) -> Command[src]
Create the base Command for running Docker.
pub fn build(&self, opt: BuildOpt) -> Command[src]
Create a Command for building a container.
pub fn run(&self, opt: RunOpt) -> Command[src]
Create a Command for running a container.
Trait Implementations
impl Clone for Docker[src]
impl Debug for Docker[src]
impl Default for Docker[src]
impl Eq for Docker[src]
impl PartialEq<Docker> for Docker[src]
impl StructuralEq for Docker[src]
impl StructuralPartialEq for Docker[src]
Auto Trait Implementations
impl RefUnwindSafe for Docker
impl Send for Docker
impl Sync for Docker
impl Unpin for Docker
impl UnwindSafe for Docker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,