pub struct ImageConfig {
pub args_escaped: Option<bool>,
pub cmd: Option<Vec<String>>,
pub entrypoint: Option<Vec<String>>,
pub env: Option<Vec<String>>,
pub exposed_ports: Option<HashMap<String, Value>>,
pub labels: Option<HashMap<String, String>>,
pub stop_signal: Option<String>,
pub user: Option<String>,
pub volumes: Option<HashMap<String, Value>>,
pub working_dir: Option<String>,
}
v5
only.Expand description
ImageConfig defines the execution parameters which should be used as a base when running a container using an image.
Fields§
§args_escaped: Option<bool>
ArgsEscaped
Deprecated: This field is present only for legacy compatibility with
Docker and should not be used by new image builders. It is used by Docker
for Windows images to indicate that the Entrypoint
or Cmd
or both,
contains only a single element array, that is a pre-escaped, and combined
into a single string CommandLine
. If true
the value in Entrypoint
or
Cmd
should be used as-is to avoid double escaping.
https://github.com/opencontainers/image-spec/pull/892
cmd: Option<Vec<String>>
Cmd defines the default arguments to the entrypoint of the container.
entrypoint: Option<Vec<String>>
Entrypoint defines a list of arguments to use as the command to execute when the container starts.
env: Option<Vec<String>>
Env is a list of environment variables to be used in a container.
exposed_ports: Option<HashMap<String, Value>>
ExposedPorts a set of ports to expose from a container running this image.
labels: Option<HashMap<String, String>>
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>>
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.