-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
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
Pushing an image with existing tag #1191
Comments
In this case the push should still succeed and the tag should point to the newly pushed image. This matches the behavior of Depending on the registry, the previous image may still be available by digest, or by any other tags it still has pointing to it. |
Would you know of a possibility to check if the used tag already exists so that a push does not take place unless the tag is unique? |
You can check for the existence of an image at a tag with
If Beware there's a possible race condition, if you check for the existence of a tag then push to it; another process can push to that tag in the meantime. At this time there isn't a "push to this tag only if it doesn't exist yet" option, though enabling this across registries is being discussed in OCI: opencontainers/distribution-spec#250 |
Closing this, please reply if this didn't answer your question. |
How do you handle a crane push of an image if the tag already exists in the registry? The push still happens if the tag exists, and overwrites previous push/tag.
The text was updated successfully, but these errors were encountered: