Struct HostConfig

Source
pub struct HostConfig {
Show 67 fields pub cpu_shares: Option<i64>, pub memory: Option<i64>, pub cgroup_parent: Option<String>, pub blkio_weight_device: Option<Vec<ThrottleDevice>>, pub blkio_device_read_bps: Option<Vec<ThrottleDevice>>, pub blkio_device_write_bps: Option<Vec<ThrottleDevice>>, pub blkio_device_read_iops: Option<Vec<ThrottleDevice>>, pub blkio_device_write_iops: Option<Vec<ThrottleDevice>>, pub cpu_period: Option<i64>, pub cpu_quota: Option<i64>, pub cpu_realtime_period: Option<i64>, pub cpu_realtime_runtime: Option<i64>, pub cpuset_cpus: Option<String>, pub cpuset_mems: Option<String>, pub devices: Option<Vec<DeviceMapping>>, pub device_cgroup_rules: Option<String>, pub device_requests: Option<Vec<DeviceRequest>>, pub kernel_memory_tcp: i64, pub memory_reservation: Option<i64>, pub memory_swap: Option<i64>, pub memory_swappiness: Option<i64>, pub nano_cpus: Option<i64>, pub oom_kill_disable: bool, pub init: Option<bool>, pub pids_limit: Option<i64>, pub ulimits: Option<Vec<Ulimit>>, pub cpu_count: i64, pub cpu_percent: i64, pub io_maximum_iops: u64, pub io_maximum_bandwith: Option<u64>, pub binds: Option<Vec<String>>, pub container_id_file: String, pub log_config: LogConfig, pub network_mode: String, pub port_bindings: Option<PortMap>, pub restart_policy: RestartPolicy, pub auto_remove: bool, pub volume_driver: String, pub volumes_from: Option<Vec<String>>, pub mounts: Option<Vec<Mount>>, pub cap_add: Option<Vec<String>>, pub cap_drop: Option<Vec<String>>, pub dns: Option<Vec<String>>, pub dns_options: Option<Vec<String>>, pub dns_search: Option<Vec<String>>, pub extra_hosts: Option<Vec<String>>, pub group_add: Option<Vec<String>>, pub ipc_mode: String, pub cgroup: String, pub links: Option<Vec<String>>, pub oom_score_adj: i64, pub pid_mode: Option<String>, pub privileged: bool, pub publish_all_ports: bool, pub readonly_rootfs: Option<bool>, pub security_opt: Option<Vec<String>>, pub storage_opt: Option<HashMap<String, String>>, pub tmpfs: Option<HashMap<String, String>>, pub uts_mode: String, pub userns_mode: String, pub shm_size: u64, pub sysctls: Option<HashMap<String, String>>, pub runtime: String, pub console_size: Option<Vec<u64>>, pub isolation: String, pub masked_paths: Option<Vec<String>>, pub readonly_paths: Option<Vec<String>>,
}

Fields§

§cpu_shares: Option<i64>§memory: Option<i64>§cgroup_parent: Option<String>§blkio_weight_device: Option<Vec<ThrottleDevice>>§blkio_device_read_bps: Option<Vec<ThrottleDevice>>§blkio_device_write_bps: Option<Vec<ThrottleDevice>>§blkio_device_read_iops: Option<Vec<ThrottleDevice>>§blkio_device_write_iops: Option<Vec<ThrottleDevice>>§cpu_period: Option<i64>§cpu_quota: Option<i64>§cpu_realtime_period: Option<i64>§cpu_realtime_runtime: Option<i64>§cpuset_cpus: Option<String>§cpuset_mems: Option<String>§devices: Option<Vec<DeviceMapping>>§device_cgroup_rules: Option<String>§device_requests: Option<Vec<DeviceRequest>>§kernel_memory_tcp: i64§memory_reservation: Option<i64>§memory_swap: Option<i64>§memory_swappiness: Option<i64>§nano_cpus: Option<i64>§oom_kill_disable: bool§init: Option<bool>§pids_limit: Option<i64>§ulimits: Option<Vec<Ulimit>>§cpu_count: i64§cpu_percent: i64§io_maximum_iops: u64§io_maximum_bandwith: Option<u64>§binds: Option<Vec<String>>§container_id_file: String§log_config: LogConfig§network_mode: String§port_bindings: Option<PortMap>§restart_policy: RestartPolicy§auto_remove: bool§volume_driver: String§volumes_from: Option<Vec<String>>§mounts: Option<Vec<Mount>>§cap_add: Option<Vec<String>>§cap_drop: Option<Vec<String>>§dns: Option<Vec<String>>§dns_options: Option<Vec<String>>§dns_search: Option<Vec<String>>§extra_hosts: Option<Vec<String>>§group_add: Option<Vec<String>>§ipc_mode: String§cgroup: String§links: Option<Vec<String>>§oom_score_adj: i64§pid_mode: Option<String>§privileged: bool§publish_all_ports: bool§readonly_rootfs: Option<bool>§security_opt: Option<Vec<String>>§storage_opt: Option<HashMap<String, String>>§tmpfs: Option<HashMap<String, String>>§uts_mode: String§userns_mode: String§shm_size: u64§sysctls: Option<HashMap<String, String>>§runtime: String§console_size: Option<Vec<u64>>§isolation: String§masked_paths: Option<Vec<String>>§readonly_paths: Option<Vec<String>>

Trait Implementations§

Source§

impl Clone for HostConfig

Source§

fn clone(&self) -> HostConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HostConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for HostConfig

Source§

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 Serialize for HostConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,