Skip to main content

pull_image

Function pull_image 

Source
pub async fn pull_image(
    cli: &str,
    docker_config: Option<&Path>,
    reference: &str,
) -> Result<PulledImage, String>
Expand description

Pull reference with the container cli. A transient registry failure falls back to a locally cached copy, or is retried with backoff when nothing is cached; any other failure is returned at once. docker_config is exported as DOCKER_CONFIG for the pull so registry credentials resolve.

Returns the pull’s stderr as the error.