Skip to content
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

Check using Quay as the registry. #500

Closed
coollog opened this issue Jul 3, 2018 · 14 comments
Closed

Check using Quay as the registry. #500

coollog opened this issue Jul 3, 2018 · 14 comments

Comments

@coollog
Copy link
Contributor

coollog commented Jul 3, 2018

No description provided.

@briandealwis
Copy link
Member

Note there are two versions of Quay: the hosted quay.io and the on-prem Quay Enterprise. Both are affected by #601.

@chanseokoh
Copy link
Member

Pushing to Quay fails: #698

@briandealwis
Copy link
Member

The Quay developers are actively working on Schema 2 support (moby/buildkit#409 (comment)).

@coollog coollog added this to the v0.10.0 milestone Aug 29, 2018
@coollog coollog modified the milestones: v0.10.0, v0.11.0 Oct 2, 2018
@coollog
Copy link
Contributor Author

coollog commented Nov 9, 2018

Closing as there hasn't been any requests for using Jib to build to Quay.

@coollog coollog closed this as completed Nov 9, 2018
@briandealwis briandealwis reopened this Mar 7, 2019
@briandealwis
Copy link
Member

briandealwis commented Mar 7, 2019

Quay is rolling out support for schema 2 and OCI images.

@chanseokoh
Copy link
Member

chanseokoh commented Mar 7, 2019

I have difficulty following all the history. My understanding is that, since Quay is rolling out support for V2.2 schema, Jib should start being able to push to Quay, and we just need to have someone verify that it works. No work from our side beside that, right?

@anthonydahanne
Copy link

I've just tried 5 minutes ago and got :

[INFO] --- jib-maven-plugin:1.0.1:build (default-cli) @ demo ---
[WARNING] Setting image creation time to current time; your image may not be reproducible.
[INFO] 
[INFO] Containerizing application to quay.io/anthonydahanne/test1...
[INFO] The base image requires auth. Trying again for openjdk:8-jre-alpine...
[INFO] 
[INFO] Container entrypoint set to [sh, -c, chmod +x /entrypoint.sh && sync && /entrypoint.sh]
[INFO] Executing tasks:
[INFO] [==============================] 100.0% complete
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:18 min
[INFO] Finished at: 2019-03-08T11:54:08-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.0.1:build (default-cli) on project demo: Tried to push image manifest for quay.io/anthonydahanne/test1:latest but failed because: Registry may not support Image Manifest Version 2, Schema 2 | If this is a bug, please file an issue at https:/GoogleContainerTools/jib/issues/new: 415 UNSUPPORTED MEDIA TYPE
[ERROR] {"errors":[{"code":"MANIFEST_INVALID","detail":{"message":"manifest schema version not supported"},"message":"manifest invalid"}]}

@chanseokoh
Copy link
Member

The server is clearly responding that the requested manifest schema version is not supported. It may be that their incremental rollout is not complete yet. Looks like you can contact them for whitelisting if this is the case.

@chanseokoh
Copy link
Member

@anthonydahanne does Quay work now?

@anthonydahanne
Copy link

nope, still the same :-(

@chanseokoh
Copy link
Member

Alright, you should keep nagging the Quay folks.

Quay still doesn't support Manifest V2.2 (returning 415 Unsupported Media Type).

$ curl -v -X PUT -H 'Content-Type: application/vnd.docker.distribution.manifest.v2+json' https://quay.io/v2/francium25/test/manifests/add-tag
...
< HTTP/2 415 
...
{"errors":[{"code":"MANIFEST_INVALID","detail":{"message":"manifest schema version not supported"},"message":"manifest invalid"}]}

OTOH, Manifest V2.1 works, as it has been.

$ curl -v -X PUT -H 'Content-Type: application/vnd.docker.distribution.manifest.v1+json' https://quay.io/v2/francium25/test/manifests/add-tag
...
< HTTP/2 401 
...
{"errors":[{"code":"UNAUTHORIZED","detail":{},"message":"access to the requested resource is not authorized"}]}

@chanseokoh chanseokoh removed this from the v1.1.0 milestone Mar 19, 2019
@chanseokoh
Copy link
Member

chanseokoh commented Aug 9, 2019

Quay still uses the deprecated Manifest V.2.1 by default, but I've seen many users asking for whitelisting their Quay namespaces to use V2.2 (moby/buildkit#409 (comment)). Jib should work with Quay when using V2.2. I'm closing this, but if anyone finds that it doesn't, please re-open.

@chanseokoh
Copy link
Member

Note Docker deprecated Manifest V2.1: https://docs.docker.com/engine/#19030

Deprecate image manifest v2 schema1 in favor of v2 schema2. Future version of Docker will remove support for v2 schema1 althogether. moby/moby#39365

@chanseokoh
Copy link
Member

chanseokoh commented Nov 21, 2019

This is the deprecation notice Docker currently prints out.

$ docker push quay.io/francium25/test
The push refers to repository [quay.io/francium25/test]
...
[DEPRECATION NOTICE] registry v2 schema1 support will be removed in an upcoming release.
Please contact admins of the quay.io registry NOW to avoid future disruption.
More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants