Struct docker_api::api::container::models::HostConfig[][src]

pub struct HostConfig {
Show 69 fields pub cpu_shares: Option<i64>, pub memory: Option<i64>, pub cgroup_parent: Option<String>, pub blkio_weight: u16, pub blkio_weight_device: Option<Vec<ThrottleWeightDevice>>, 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<Vec<String>>, pub device_requests: Option<Vec<DeviceRequest>>, pub kernel_memory: i64, 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: Option<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<MountPoint>>, 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<StorageOpt>, pub tmpfs: Option<Tmpfs>, pub uts_mode: String, pub userns_mode: String, pub shm_size: u64, pub sysctls: Option<Sysctls>, pub runtime: Option<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: u16blkio_weight_device: Option<Vec<ThrottleWeightDevice>>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<Vec<String>>device_requests: Option<Vec<DeviceRequest>>kernel_memory: i64kernel_memory_tcp: i64memory_reservation: Option<i64>memory_swap: Option<i64>memory_swappiness: Option<i64>nano_cpus: Option<i64>oom_kill_disable: Option<bool>init: Option<bool>pids_limit: Option<i64>ulimits: Option<Vec<Ulimit>>cpu_count: i64cpu_percent: i64io_maximum_iops: u64io_maximum_bandwith: Option<u64>binds: Option<Vec<String>>container_id_file: Stringlog_config: LogConfignetwork_mode: Stringport_bindings: Option<PortMap>restart_policy: RestartPolicyauto_remove: boolvolume_driver: Stringvolumes_from: Option<Vec<String>>mounts: Option<Vec<MountPoint>>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: Stringcgroup: Stringlinks: Option<Vec<String>>oom_score_adj: i64pid_mode: Option<String>privileged: boolpublish_all_ports: boolreadonly_rootfs: Option<bool>security_opt: Option<Vec<String>>storage_opt: Option<StorageOpt>tmpfs: Option<Tmpfs>uts_mode: Stringuserns_mode: Stringshm_size: u64sysctls: Option<Sysctls>runtime: Option<String>console_size: Option<Vec<u64>>isolation: Stringmasked_paths: Option<Vec<String>>readonly_paths: Option<Vec<String>>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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