Struct podman_autogen_api::models::host_config::HostConfig
source · pub struct HostConfig {Show 71 fields
pub annotations: Option<HashMap<String, String>>,
pub auto_remove: Option<bool>,
pub binds: Option<Vec<String>>,
pub blkio_device_read_bps: Option<Vec<ThrottleDevice>>,
pub blkio_device_read_i_ops: Option<Vec<ThrottleDevice>>,
pub blkio_device_write_bps: Option<Vec<ThrottleDevice>>,
pub blkio_device_write_i_ops: Option<Vec<ThrottleDevice>>,
pub blkio_weight: Option<i32>,
pub blkio_weight_device: Option<Vec<WeightDevice>>,
pub cap_add: Option<Vec<String>>,
pub cap_drop: Option<Vec<String>>,
pub cgroup: Option<String>,
pub cgroup_parent: Option<String>,
pub cgroupns_mode: Option<String>,
pub console_size: Option<Vec<i32>>,
pub container_id_file: Option<String>,
pub cpu_count: Option<i64>,
pub cpu_percent: Option<i64>,
pub cpu_period: Option<i64>,
pub cpu_quota: Option<i64>,
pub cpu_realtime_period: Option<i64>,
pub cpu_realtime_runtime: Option<i64>,
pub cpu_shares: Option<i64>,
pub cpuset_cpus: Option<String>,
pub cpuset_mems: Option<String>,
pub device_cgroup_rules: Option<Vec<String>>,
pub device_requests: Option<Vec<DeviceRequest>>,
pub devices: Option<Vec<DeviceMapping>>,
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 io_maximum_bandwidth: Option<i32>,
pub io_maximum_i_ops: Option<i32>,
pub init: Option<bool>,
pub ipc_mode: Option<String>,
pub isolation: Option<String>,
pub kernel_memory: Option<i64>,
pub kernel_memory_tcp: Option<i64>,
pub links: Option<Vec<String>>,
pub log_config: Option<Box<LogConfig>>,
pub masked_paths: Option<Vec<String>>,
pub memory: Option<i64>,
pub memory_reservation: Option<i64>,
pub memory_swap: Option<i64>,
pub memory_swappiness: Option<i64>,
pub mounts: Option<Vec<Mount>>,
pub nano_cpus: Option<i64>,
pub network_mode: Option<String>,
pub oom_kill_disable: Option<bool>,
pub oom_score_adj: Option<i64>,
pub pid_mode: Option<String>,
pub pids_limit: Option<i64>,
pub port_bindings: Option<HashMap<String, Vec<PortBinding>>>,
pub privileged: Option<bool>,
pub publish_all_ports: Option<bool>,
pub readonly_paths: Option<Vec<String>>,
pub readonly_rootfs: Option<bool>,
pub restart_policy: Option<Box<RestartPolicy>>,
pub runtime: Option<String>,
pub security_opt: Option<Vec<String>>,
pub shm_size: Option<i64>,
pub storage_opt: Option<HashMap<String, String>>,
pub sysctls: Option<HashMap<String, String>>,
pub tmpfs: Option<HashMap<String, String>>,
pub uts_mode: Option<String>,
pub ulimits: Option<Vec<Ulimit>>,
pub userns_mode: Option<String>,
pub volume_driver: Option<String>,
pub volumes_from: Option<Vec<String>>,
}
Expand description
HostConfig : Here, "non-portable" means "dependent of the host we are running on". Portable information should appear in Config.
Fields§
§annotations: Option<HashMap<String, String>>
§auto_remove: Option<bool>
§binds: Option<Vec<String>>
Applicable to all platforms
blkio_device_read_bps: Option<Vec<ThrottleDevice>>
§blkio_device_read_i_ops: Option<Vec<ThrottleDevice>>
§blkio_device_write_bps: Option<Vec<ThrottleDevice>>
§blkio_device_write_i_ops: Option<Vec<ThrottleDevice>>
§blkio_weight: Option<i32>
§blkio_weight_device: Option<Vec<WeightDevice>>
§cap_add: Option<Vec<String>>
We need to override the json decoder to accept both options.
cap_drop: Option<Vec<String>>
We need to override the json decoder to accept both options.
cgroup: Option<String>
§cgroup_parent: Option<String>
Applicable to UNIX platforms
cgroupns_mode: Option<String>
CgroupnsMode represents the cgroup namespace mode of the container
console_size: Option<Vec<i32>>
§container_id_file: Option<String>
§cpu_count: Option<i64>
Applicable to Windows
cpu_percent: Option<i64>
§cpu_period: Option<i64>
§cpu_quota: Option<i64>
§cpu_realtime_period: Option<i64>
§cpu_realtime_runtime: Option<i64>
Applicable to all platforms
cpuset_cpus: Option<String>
§cpuset_mems: Option<String>
§device_cgroup_rules: Option<Vec<String>>
§device_requests: Option<Vec<DeviceRequest>>
§devices: Option<Vec<DeviceMapping>>
§dns: Option<Vec<String>>
§dns_options: Option<Vec<String>>
§dns_search: Option<Vec<String>>
§extra_hosts: Option<Vec<String>>
§group_add: Option<Vec<String>>
§io_maximum_bandwidth: Option<i32>
§io_maximum_i_ops: Option<i32>
§init: Option<bool>
Run a custom init inside the container, if null, use the daemon’s configured settings
ipc_mode: Option<String>
§isolation: Option<String>
Isolation represents the isolation technology of a container. The supported values are platform specific
kernel_memory: Option<i64>
KernelMemory specifies the kernel memory limit (in bytes) for the container. Deprecated: kernel 5.4 deprecated kmem.limit_in_bytes.
kernel_memory_tcp: Option<i64>
§links: Option<Vec<String>>
§log_config: Option<Box<LogConfig>>
§masked_paths: Option<Vec<String>>
MaskedPaths is the list of paths to be masked inside the container (this overrides the default set of paths)
memory: Option<i64>
§memory_reservation: Option<i64>
§memory_swap: Option<i64>
§memory_swappiness: Option<i64>
§mounts: Option<Vec<Mount>>
Mounts specs used by the container
nano_cpus: Option<i64>
§network_mode: Option<String>
§oom_kill_disable: Option<bool>
§oom_score_adj: Option<i64>
§pid_mode: Option<String>
§pids_limit: Option<i64>
§port_bindings: Option<HashMap<String, Vec<PortBinding>>>
PortMap is a collection of PortBinding indexed by Port
privileged: Option<bool>
§publish_all_ports: Option<bool>
§readonly_paths: Option<Vec<String>>
ReadonlyPaths is the list of paths to be set as read-only inside the container (this overrides the default set of paths)
readonly_rootfs: Option<bool>
§restart_policy: Option<Box<RestartPolicy>>
§runtime: Option<String>
§security_opt: Option<Vec<String>>
§shm_size: Option<i64>
§storage_opt: Option<HashMap<String, String>>
§sysctls: Option<HashMap<String, String>>
§tmpfs: Option<HashMap<String, String>>
§uts_mode: Option<String>
§ulimits: Option<Vec<Ulimit>>
§userns_mode: Option<String>
§volume_driver: Option<String>
§volumes_from: Option<Vec<String>>
Implementations§
source§impl HostConfig
impl HostConfig
sourcepub fn new() -> HostConfig
pub fn new() -> HostConfig
Here, "non-portable" means "dependent of the host we are running on". Portable information should appear in Config.
Trait Implementations§
source§impl Clone for HostConfig
impl Clone for HostConfig
source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HostConfig
impl Debug for HostConfig
source§impl Default for HostConfig
impl Default for HostConfig
source§fn default() -> HostConfig
fn default() -> HostConfig
source§impl<'de> Deserialize<'de> for HostConfig
impl<'de> Deserialize<'de> for HostConfig
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>,
source§impl PartialEq for HostConfig
impl PartialEq for HostConfig
source§fn eq(&self, other: &HostConfig) -> bool
fn eq(&self, other: &HostConfig) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HostConfig
impl Serialize for HostConfig
impl StructuralPartialEq for HostConfig
Auto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnwindSafe for HostConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)