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

Method tag

lib-engine/src/cmd/docker.rs:898–918  ·  view source on GitHub ↗
(
        &self,
        source_image: &ContainerImage,
        dest_image: &ContainerImage,
        stdout_output: &mut Stdout,
        stderr_output: &mut Stderr,
        should_abort: &CommandKille

Source from the content-addressed store, hash-verified

896 }
897
898 pub fn tag<Stdout, Stderr>(
899 &self,
900 source_image: &ContainerImage,
901 dest_image: &ContainerImage,
902 stdout_output: &mut Stdout,
903 stderr_output: &mut Stderr,
904 should_abort: &CommandKiller,
905 ) -> Result<(), DockerError>
906 where
907 Stdout: FnMut(String),
908 Stderr: FnMut(String),
909 {
910 info!("Docker tag {:?} {:?}", source_image, dest_image);
911 let mut args = vec!["--config", self.config_path.path().to_str().unwrap_or(""), "tag"];
912 let source_image = source_image.image_name();
913 let dest_image = dest_image.image_name();
914 args.push(source_image.as_str());
915 args.push(dest_image.as_str());
916
917 docker_exec(&args, &self.get_all_envs(&[]), stdout_output, stderr_output, should_abort)
918 }
919
920 pub fn mirror<Stdout, Stderr>(
921 &self,

Callers

nothing calls this directly

Calls 5

docker_execFunction · 0.85
image_nameMethod · 0.80
pushMethod · 0.80
as_strMethod · 0.45
get_all_envsMethod · 0.45

Tested by

no test coverage detected