Struct podman_api::models::ImageConfig [−][src]
pub struct ImageConfig {
pub cmd: Option<Vec<String, Global>>,
pub entrypoint: Option<Vec<String, Global>>,
pub env: Option<Vec<String, Global>>,
pub exposed_ports: Option<HashMap<String, Value, RandomState>>,
pub labels: Option<HashMap<String, String, RandomState>>,
pub stop_signal: Option<String>,
pub user: Option<String>,
pub volumes: Option<HashMap<String, Value, RandomState>>,
pub working_dir: Option<String>,
}
Fields
cmd: Option<Vec<String, Global>>
Cmd defines the default arguments to the entrypoint of the container.
entrypoint: Option<Vec<String, Global>>
Entrypoint defines a list of arguments to use as the command to execute when the container starts.
env: Option<Vec<String, Global>>
Env is a list of environment variables to be used in a container.
exposed_ports: Option<HashMap<String, Value, RandomState>>
ExposedPorts a set of ports to expose from a container running this image.
labels: Option<HashMap<String, String, RandomState>>
Labels contains arbitrary metadata for the container.
stop_signal: Option<String>
StopSignal contains the system call signal that will be sent to the container to exit.
user: Option<String>
User defines the username or UID which the process in the container should run as.
volumes: Option<HashMap<String, Value, RandomState>>
Volumes is a set of directories describing where the process is likely write data specific to a container instance.
working_dir: Option<String>
WorkingDir sets the current working directory of the entrypoint process in the container.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ImageConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ImageConfig, <__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 ImageConfig
impl Send for ImageConfig
impl Sync for ImageConfig
impl Unpin for ImageConfig
impl UnwindSafe for ImageConfig
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