imago
imago copied to clipboard
Incorrect image name
The next code doesn't work in the case the image is from private registry
-
image := strings.Split(container.Image, ":")[0] + "@" + digest
I suggest the following fixup
-
ss := strings.Split(container.Image, ":")
-
image := ss[0] + "@" + digest
-
if len(ss) > 2 {
-
image = ss[0] + ":" + ss[1] + "@" + digest
-
}
vh
Thanks for reporting this !
I think we should use docker.ParseReference()
for this.