Skip to main content

ensure_image

Function ensure_image 

Source
pub async fn ensure_image(
    docker: &Docker,
    image: &str,
    deadline: Instant,
) -> Result<(), GenericError>
Expand description

Pulls image unless the Docker daemon already has it.

ยงErrors

Returns an error if Docker cannot inspect the image, if the pull fails, or if deadline passes first.