MCPcopy Create free account
hub / github.com/Qovery/engine / pull

Method pull

lib-engine/src/cmd/docker.rs:662–687  ·  view source on GitHub ↗
(
        &self,
        image: &ContainerImage,
        stdout_output: &mut Stdout,
        stderr_output: &mut Stderr,
        should_abort: &CommandKiller,
    )

Source from the content-addressed store, hash-verified

660 }
661
662 pub fn pull<Stdout, Stderr>(
663 &self,
664 image: &ContainerImage,
665 stdout_output: &mut Stdout,
666 stderr_output: &mut Stderr,
667 should_abort: &CommandKiller,
668 ) -> Result<(), DockerError>
669 where
670 Stdout: FnMut(String),
671 Stderr: FnMut(String),
672 {
673 info!("Docker pull {:?}", image);
674
675 docker_exec(
676 &[
677 "--config",
678 self.config_path.path().to_str().unwrap_or(""),
679 "pull",
680 &image.image_name(),
681 ],
682 &self.get_all_envs(&[]),
683 stdout_output,
684 stderr_output,
685 should_abort,
686 )
687 }
688
689 pub fn build<Stdout, Stderr>(
690 &self,

Callers 9

test_pullFunction · 0.80
test_pushFunction · 0.80
test_mirrorFunction · 0.80
test_delete_imageFunction · 0.80
test_get_docker_imageFunction · 0.80
test_delete_docker_imageFunction · 0.80
test_get_docker_imageFunction · 0.80
test_delete_docker_imageFunction · 0.80
test_list_docker_imagesFunction · 0.80

Calls 4

docker_execFunction · 0.85
image_nameMethod · 0.80
pathMethod · 0.45
get_all_envsMethod · 0.45

Tested by 9

test_pullFunction · 0.64
test_pushFunction · 0.64
test_mirrorFunction · 0.64
test_delete_imageFunction · 0.64
test_get_docker_imageFunction · 0.64
test_delete_docker_imageFunction · 0.64
test_get_docker_imageFunction · 0.64
test_delete_docker_imageFunction · 0.64
test_list_docker_imagesFunction · 0.64