docker-sdk-rust/docs/ImageConfig.md
2025-06-16 16:37:36 +07:00

2.2 KiB

ImageConfig

Properties

Name Type Description Notes
user Option<String> The user that commands are run as inside the container. [optional]
exposed_ports Option<std::collections::HashMap<String, serde_json::Value>> An object mapping ports to an empty object in the form: `{"/<tcp udp
env Option<Vec> A list of environment variables to set inside the container in the form [\"VAR=value\", ...]. A variable without = is removed from the environment, rather than to have an empty value. [optional]
cmd Option<Vec> Command to run specified as a string or an array of strings. [optional]
healthcheck Option<models::HealthConfig> [optional]
args_escaped Option<bool> Command is already escaped (Windows only) [optional][default to false]
volumes Option<std::collections::HashMap<String, serde_json::Value>> An object mapping mount point paths inside the container to empty objects. [optional]
working_dir Option<String> The working directory for commands to run in. [optional]
entrypoint Option<Vec> The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string ([\"\"]) then the entry point is reset to system default (i.e., the entry point used by docker when there is no ENTRYPOINT instruction in the Dockerfile). [optional]
on_build Option<Vec> ONBUILD metadata that were defined in the image's Dockerfile. [optional]
labels Option<std::collections::HashMap<String, String>> User-defined key/value metadata. [optional]
stop_signal Option<String> Signal to stop a container as a string or unsigned integer. [optional]
shell Option<Vec> Shell for when RUN, CMD, and ENTRYPOINT uses a shell. [optional]

[Back to Model list] [Back to API list] [Back to README]