Type Alias BuildOptionsBuilder

Source
pub type BuildOptionsBuilder = BuildOptionsBuilder;
👎Deprecated since 0.8.0: Please use docker_sdk::image::BuildOptionsBuilder. This will be removed in 0.9.0.

Aliased Type§

pub struct BuildOptionsBuilder { /* private fields */ }

Implementations

Source§

impl BuildOptionsBuilder

Source

pub fn dockerfile<P>(&mut self, path: P) -> &mut Self
where P: Into<String>,

set the name of the docker file. defaults to “DockerFile”

Source

pub fn tag<T>(&mut self, t: T) -> &mut Self
where T: Into<String>,

tag this image with a name after building it

Source

pub fn remote<R>(&mut self, r: R) -> &mut Self
where R: Into<String>,

Source

pub fn nocache(&mut self, nc: bool) -> &mut Self

don’t use the image cache when building image

Source

pub fn rm(&mut self, r: bool) -> &mut Self

Source

pub fn forcerm(&mut self, fr: bool) -> &mut Self

Source

pub fn network_mode<T>(&mut self, t: T) -> &mut Self
where T: Into<String>,

bridge, host, none, container:<name|id>, or a custom network name.

Source

pub fn memory(&mut self, memory: u64) -> &mut Self

Source

pub fn cpu_shares(&mut self, cpu_shares: u32) -> &mut Self

Source

pub fn platform<T>(&mut self, t: T) -> &mut Self
where T: Into<String>,

Source

pub fn build(&self) -> BuildOptions

Trait Implementations

Source§

impl Default for BuildOptionsBuilder

Source§

fn default() -> BuildOptionsBuilder

Returns the “default value” for a type. Read more