From 0b4ca57acf2dc6d28b78ab4a98400ed1b991e6f1 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 11 May 2024 10:54:45 +0000 Subject: [PATCH] fix(cache): re-tagging podman-generated images --- container/container.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/container/container.go b/container/container.go index 8e4da0c..d496096 100644 --- a/container/container.go +++ b/container/container.go @@ -92,6 +92,15 @@ func Load(localpath string, name string) (err error) { return } + cmd = exec.Command(Runtime, "tag", "localhost/"+name, name) + log.Debug().Msgf("%v", cmd) + + raw, err = cmd.CombinedOutput() + if err != nil { + log.Debug().Err(err).Msg(string(raw)) + return + } + return }