[−][src]Struct shipliftExp::builder::ContainerOptionsBuilder
Methods
impl ContainerOptionsBuilder
[src]
pub fn name(&mut self, name: &str) -> &mut Self
[src]
pub fn working_dir(&mut self, working_dir: &str) -> &mut Self
[src]
Specify the working dir (corresponds to the -w
docker cli argument)
pub fn volumes(&mut self, volumes: Vec<&str>) -> &mut Self
[src]
Specify any bind mounts, taking the form of /some/host/path:/some/container/path
pub fn ports(
&mut self,
srcport: u32,
protocol: &str,
hostport: u32
) -> &mut Self
[src]
&mut self,
srcport: u32,
protocol: &str,
hostport: u32
) -> &mut Self
pub fn expose(&mut self, srcport: u32, protocol: &str) -> &mut Self
[src]
pub fn links(&mut self, links: Vec<&str>) -> &mut Self
[src]
pub fn memory(&mut self, memory: u64) -> &mut Self
[src]
pub fn cpu_shares(&mut self, cpu_shares: u32) -> &mut Self
[src]
Sets an integer value representing the container's relative CPU weight versus other containers.
pub fn labels(&mut self, labels: &HashMap<&str, &str>) -> &mut Self
[src]
pub fn attach_stdin(&mut self, attach: bool) -> &mut Self
[src]
Whether to attach to stdin
.
pub fn attach_stdout(&mut self, attach: bool) -> &mut Self
[src]
Whether to attach to stdout
.
pub fn attach_stderr(&mut self, attach: bool) -> &mut Self
[src]
Whether to attach to stderr
.
pub fn tty(&mut self, tty: bool) -> &mut Self
[src]
Whether standard streams should be attached to a TTY.
pub fn extra_hosts(&mut self, hosts: Vec<&str>) -> &mut Self
[src]
pub fn volumes_from(&mut self, volumes: Vec<&str>) -> &mut Self
[src]
pub fn network_mode(&mut self, network: &str) -> &mut Self
[src]
pub fn env(&mut self, envs: Vec<&str>) -> &mut Self
[src]
pub fn cmd(&mut self, cmds: Vec<&str>) -> &mut Self
[src]
pub fn entrypoint(&mut self, entrypoint: &str) -> &mut Self
[src]
pub fn capabilities(&mut self, capabilities: Vec<&str>) -> &mut Self
[src]
pub fn devices(&mut self, devices: Vec<HashMap<String, String>>) -> &mut Self
[src]
pub fn log_driver(&mut self, log_driver: &str) -> &mut Self
[src]
pub fn restart_policy(
&mut self,
name: &str,
maximum_retry_count: u64
) -> &mut Self
[src]
&mut self,
name: &str,
maximum_retry_count: u64
) -> &mut Self
pub fn auto_remove(&mut self, set: bool) -> &mut Self
[src]
pub fn userns_mode(&mut self, mode: &str) -> &mut Self
[src]
pub fn privileged(&mut self, set: bool) -> &mut Self
[src]
pub fn build(&self) -> ContainerOptions
[src]
Trait Implementations
impl Default for ContainerOptionsBuilder
[src]
fn default() -> ContainerOptionsBuilder
[src]
Auto Trait Implementations
impl Send for ContainerOptionsBuilder
impl Sync for ContainerOptionsBuilder
impl Unpin for ContainerOptionsBuilder
impl UnwindSafe for ContainerOptionsBuilder
impl RefUnwindSafe for ContainerOptionsBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,