-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AWS ECR - Registry may not support pushing OCI Manifest or Docker Image Manifest Version 2, Schema 2 #3215
Comments
Hey @mantoshelis, apologies for the delay. This error is only thrown in one place in the Jib code and is due to the server returning MANIFEST_INVALID or TAG_INVALID. We've seen this occur in the past for some registries like Quay.io and Artifactory. I would suggest taking a look at #3201 (comment) and the related issues linked there. I'm tempted to say that #3201 is very similar to what you're experiencing. |
The difference from #3201 is that, the build here doesn't seem to be pushing multiple manifests. Otherwise, you must have seen all the tags in the log, but it says only one image (manifest):
However, it's still true that the server is returning |
Thank you for the responses. Unfortunately, the problem persisted in AWS ECR registry. Tag immutability was toggled on. |
Aha, thanks for the update. That explains it. |
The error is because Jib is pushing the exact same image again (i.e., ECR already has the image). With the tag immutability turned on, ECR won't allow re-uploading existing images. Obviously, if you hit this issue, there's nothing you need to do; the image is already there. But for some reason you don't want to see Jib fail, one option could be |
The skipExistingImages option does not work for me :/ This is the profile I'm using
I use this command to run the build |
@chtpl for documentation purposes: |
Environment:
Description of the issue:
Docker image push to AWS ECR fails with
Registry may not support pushing OCI Manifest or Docker Image Manifest Version 2, Schema 2
error. I'm using AWS ECR Credentials Helper as an authorization mechanism.adoptopenjdk:11-jdk
Docker image used in environment where this plugin is used.Expected behavior:
Plugin successfully pushes Docker image to AWS ECR.
Steps to reproduce:
AWS_DEFAULT_REGION
,AWS_ECR_REGISTRY_URL
,AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
jib-gradle-plugin
Configuration:Log output:
The text was updated successfully, but these errors were encountered: