Struct dockworker::ContainerCreateOptions
source · pub struct ContainerCreateOptions { /* private fields */ }
Expand description
request body of /containers/create api
Implementations§
source§impl ContainerCreateOptions
impl ContainerCreateOptions
pub fn new(image: &str) -> Self
pub fn hostname(&mut self, hostname: String) -> &mut Self
pub fn domainname(&mut self, domainname: String) -> &mut Self
pub fn user(&mut self, user: String) -> &mut Self
pub fn attach_stdin(&mut self, attach_stdin: bool) -> &mut Self
pub fn attach_stdout(&mut self, attach_stdout: bool) -> &mut Self
pub fn attach_stderr(&mut self, attach_stderr: bool) -> &mut Self
pub fn tty(&mut self, tty: bool) -> &mut Self
pub fn open_stdin(&mut self, open_stdin: bool) -> &mut Self
pub fn stdin_once(&mut self, stdin_once: bool) -> &mut Self
sourcepub fn entrypoint(&mut self, entrypoint: Vec<String>) -> &mut Self
pub fn entrypoint(&mut self, entrypoint: Vec<String>) -> &mut Self
update entrypoint
pub fn image(&mut self, image: String) -> &mut Self
pub fn working_dir(&mut self, working_dir: PathBuf) -> &mut Self
pub fn network_disabled(&mut self, network_disabled: bool) -> &mut Self
pub fn mac_address(&mut self, mac_address: String) -> &mut Self
pub fn on_build(&mut self, on_build: Vec<String>) -> &mut Self
pub fn stop_signal(&mut self, stop_signal: String) -> &mut Self
pub fn stop_timeout(&mut self, stop_timeout: Duration) -> &mut Self
pub fn host_config(&mut self, host_config: ContainerHostConfig) -> &mut Self
pub fn networking_config(
&mut self,
networking_config: NetworkingConfig
) -> &mut Self
Trait Implementations§
source§impl Clone for ContainerCreateOptions
impl Clone for ContainerCreateOptions
source§fn clone(&self) -> ContainerCreateOptions
fn clone(&self) -> ContainerCreateOptions
Returns a copy 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 Debug for ContainerCreateOptions
impl Debug for ContainerCreateOptions
source§impl<'de> Deserialize<'de> for ContainerCreateOptions
impl<'de> Deserialize<'de> for ContainerCreateOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more