Skip to main content

get_image_version

Function get_image_version 

Source
pub async fn get_image_version(
    client: &DockerClient,
    image_name: &str,
) -> Result<Option<String>, DockerError>
Expand description

Get version from image label

Returns None if image doesn’t exist or has no version label. Version label is set during automated builds; local builds have “dev”.