pub struct CreateContainerConfig {Show 31 fields
pub args_escaped: Option<bool>,
pub attach_stderr: Option<bool>,
pub attach_stdin: Option<bool>,
pub attach_stdout: Option<bool>,
pub cmd: Option<Vec<String>>,
pub domainname: Option<String>,
pub entrypoint: Option<Vec<String>>,
pub env: Option<Vec<String>>,
pub env_merge: Option<Vec<String>>,
pub exposed_ports: Option<HashMap<String, Value>>,
pub healthcheck: Option<Box<HealthcheckConfig>>,
pub host_config: Option<Box<HostConfig>>,
pub hostname: Option<String>,
pub image: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub mac_address: Option<String>,
pub name: Option<String>,
pub network_disabled: Option<bool>,
pub networking_config: Option<Box<NetworkingConfig>>,
pub on_build: Option<Vec<String>>,
pub open_stdin: Option<bool>,
pub shell: Option<Vec<String>>,
pub stdin_once: Option<bool>,
pub stop_signal: Option<String>,
pub stop_timeout: Option<i64>,
pub tty: Option<bool>,
pub unset_env: Option<Vec<String>>,
pub unset_env_all: Option<bool>,
pub user: Option<String>,
pub volumes: Option<HashMap<String, Value>>,
pub working_dir: Option<String>,
}
Expand description
CreateContainerConfig : CreateContainerConfig used when compatible endpoint creates a container
Fields§
§args_escaped: Option<bool>
§attach_stderr: Option<bool>
§attach_stdin: Option<bool>
§attach_stdout: Option<bool>
§cmd: Option<Vec<String>>
We need to override the json decoder to accept both options.
domainname: Option<String>
§entrypoint: Option<Vec<String>>
We need to override the json decoder to accept both options.
env: Option<Vec<String>>
§env_merge: Option<Vec<String>>
§exposed_ports: Option<HashMap<String, Value>>
PortSet is a collection of structs indexed by Port
healthcheck: Option<Box<HealthcheckConfig>>
§host_config: Option<Box<HostConfig>>
§hostname: Option<String>
§image: Option<String>
§labels: Option<HashMap<String, String>>
§mac_address: Option<String>
Mac Address of the container. Deprecated: this field is deprecated since API v1.44. Use EndpointSettings.MacAddress instead.
name: Option<String>
§network_disabled: Option<bool>
§networking_config: Option<Box<NetworkingConfig>>
§on_build: Option<Vec<String>>
§open_stdin: Option<bool>
§shell: Option<Vec<String>>
We need to override the json decoder to accept both options.
stdin_once: Option<bool>
§stop_signal: Option<String>
§stop_timeout: Option<i64>
§tty: Option<bool>
§unset_env: Option<Vec<String>>
§unset_env_all: Option<bool>
§user: Option<String>
§volumes: Option<HashMap<String, Value>>
§working_dir: Option<String>
Implementations§
Source§impl CreateContainerConfig
impl CreateContainerConfig
Sourcepub fn new() -> CreateContainerConfig
pub fn new() -> CreateContainerConfig
CreateContainerConfig used when compatible endpoint creates a container
Trait Implementations§
Source§impl Clone for CreateContainerConfig
impl Clone for CreateContainerConfig
Source§fn clone(&self) -> CreateContainerConfig
fn clone(&self) -> CreateContainerConfig
Returns a duplicate 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 CreateContainerConfig
impl Debug for CreateContainerConfig
Source§impl Default for CreateContainerConfig
impl Default for CreateContainerConfig
Source§fn default() -> CreateContainerConfig
fn default() -> CreateContainerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateContainerConfig
impl<'de> Deserialize<'de> for CreateContainerConfig
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
Source§impl PartialEq for CreateContainerConfig
impl PartialEq for CreateContainerConfig
Source§impl Serialize for CreateContainerConfig
impl Serialize for CreateContainerConfig
impl StructuralPartialEq for CreateContainerConfig
Auto Trait Implementations§
impl Freeze for CreateContainerConfig
impl RefUnwindSafe for CreateContainerConfig
impl Send for CreateContainerConfig
impl Sync for CreateContainerConfig
impl Unpin for CreateContainerConfig
impl UnwindSafe for CreateContainerConfig
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