From ee1262e983f7a6c85c494b5d521c10fb56529e88 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 11 May 2024 10:54:45 +0000 Subject: [PATCH] fix: 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 }