Struct podman_api::models::ContainerStorageConfig [−][src]
pub struct ContainerStorageConfig {Show 19 fields
pub create_working_dir: Option<bool>,
pub device_cgroup_rule: Option<Vec<LinuxDeviceCgroup, Global>>,
pub devices: Option<Vec<LinuxDevice, Global>>,
pub image: Option<String>,
pub image_volume_mode: Option<String>,
pub image_volumes: Option<Vec<ImageVolume, Global>>,
pub init: Option<bool>,
pub init_path: Option<String>,
pub ipcns: Option<Namespace>,
pub mounts: Option<Vec<Mount, Global>>,
pub overlay_volumes: Option<Vec<OverlayVolume, Global>>,
pub rootfs: Option<String>,
pub rootfs_propagation: Option<String>,
pub secrets: Option<Vec<Secret, Global>>,
pub shm_size: Option<i64>,
pub volatile: Option<bool>,
pub volumes: Option<Vec<NamedVolume, Global>>,
pub volumes_from: Option<Vec<String, Global>>,
pub work_dir: Option<String>,
}
Expand description
ContainerStorageConfig contains information on the storage configuration of a container.
Fields
create_working_dir: Option<bool>
Create the working directory if it doesn’t exist. If unset, it doesn’t create it. Optional.
device_cgroup_rule: Option<Vec<LinuxDeviceCgroup, Global>>
DeviceCGroupRule are device cgroup rules that allow containers to use additional types of devices.
devices: Option<Vec<LinuxDevice, Global>>
Devices are devices that will be added to the container. Optional.
image: Option<String>
Image is the image the container will be based on. The image will be used as the container’s root filesystem, and its environment vars, volumes, and other configuration will be applied to the container. Conflicts with Rootfs. At least one of Image or Rootfs must be specified.
image_volume_mode: Option<String>
ImageVolumeMode indicates how image volumes will be created. Supported modes are "ignore" (do not create), "tmpfs" (create as tmpfs), and "anonymous" (create as anonymous volumes). The default if unset is anonymous. Optional.
image_volumes: Option<Vec<ImageVolume, Global>>
Image volumes bind-mount a container-image mount into the container. Optional.
init: Option<bool>
Init specifies that an init binary will be mounted into the container, and will be used as PID1.
init_path: Option<String>
InitPath specifies the path to the init binary that will be added if Init is specified above. If not specified, the default set in the Libpod config will be used. Ignored if Init above is not set. Optional.
ipcns: Option<Namespace>
mounts: Option<Vec<Mount, Global>>
Mounts are mounts that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
overlay_volumes: Option<Vec<OverlayVolume, Global>>
Overlay volumes are named volumes that will be added to the container. Optional.
rootfs: Option<String>
Rootfs is the path to a directory that will be used as the container’s root filesystem. No modification will be made to the directory, it will be directly mounted into the container as root. Conflicts with Image. At least one of Image or Rootfs must be specified.
rootfs_propagation: Option<String>
RootfsPropagation is the rootfs propagation mode for the container. If not set, the default of rslave will be used. Optional.
secrets: Option<Vec<Secret, Global>>
Secrets are the secrets that will be added to the container Optional.
shm_size: Option<i64>
ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional.
volatile: Option<bool>
Volatile specifies whether the container storage can be optimized at the cost of not syncing all the dirty files in memory.
volumes: Option<Vec<NamedVolume, Global>>
Volumes are named volumes that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
volumes_from: Option<Vec<String, Global>>
VolumesFrom is a set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are ‘ro’, ‘rw’, and ‘z’. Options will be used for all volumes sourced from the container.
work_dir: Option<String>
WorkDir is the container’s working directory. If unset, the default, /, will be used. Optional.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerStorageConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerStorageConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContainerStorageConfig
impl Send for ContainerStorageConfig
impl Sync for ContainerStorageConfig
impl Unpin for ContainerStorageConfig
impl UnwindSafe for ContainerStorageConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
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