We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Thanks for reporting this ! I think we should use docker.ParseReference() for this.
docker.ParseReference()
Sorry, something went wrong.
No branches or pull requests
The next code doesn't work in the case the image is from private registry
I suggest the following fixup
vh
The text was updated successfully, but these errors were encountered: