You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other than re-publishing v1-manifest image to my own repo, can you advise on how to support V1 manifest repos with container_pull?
I get the following error when I attempt to fetch the keycloak-gatekeeper image from quay.io and dockerhub.com:
bazel fetch @keycloak-gatekeeper//...
INFO: Call stack for the definition of repository 'keycloak-gatekeeper' which is a container_pull (rule definition at
ERROR: An error occurred during the fetch of repository 'keycloak-gatekeeper':
Pull command failed: 2019/10/28 19:09:37 Running the Image Puller to pull images from a Docker Registry...
2019/10/28 19:09:38 Image pull was unsuccessful: reading image "quay.io/keycloak/keycloak-gatekeeper@sha256:103d49ceaf9dab3d96757fb76732e2047051471deb4e8a459347aa17a9fe65d7": unsupported MediaType: "application/vnd.docker.distribution.manifest.v1+prettyjws", see https://github.com/google/go-containerregistry/issues/377
ERROR: Pull command failed: 2019/10/28 19:09:37 Running the Image Puller to pull images from a Docker Registry...
2019/10/28 19:09:38 Image pull was unsuccessful: reading image "quay.io/keycloak/keycloak-gatekeeper@sha256:103d49ceaf9dab3d96757fb76732e2047051471deb4e8a459347aa17a9fe65d7": unsupported MediaType: "application/vnd.docker.distribution.manifest.v1+prettyjws", see https://github.com/google/go-containerregistry/issues/377
Hi @mmikitka,
You are probably referring to the inability to pull a manifest v2 schema 1 image and not a manifest v1 image. Unfortunately, we cannot provide you with a better workaround for your usecase and believe this issue shouldn't be addressed here for a few reasons:
Image manifest v2, schema 1 is deprecated since manifest v2, schema 2 came out (reference).
quay.io seems to be very behind with their migration to support manifest v2, schema 2 and they seem to still want to support schema 1 in order not to break existing users. This makes sense, but doesn't justify the need to continue publishing latest images using the schema 1 format.
We recently migrated rules_docker to use google/go-containerregistry and are very happy with it. As you can see in the issue you referenced, they have their own good reasons why not to support schema 1.
Please reopen the issue if you feel there is a reason to.
Other than re-publishing v1-manifest image to my own repo, can you advise on how to support V1 manifest repos with container_pull?
I get the following error when I attempt to fetch the
keycloak-gatekeeper
image from quay.io and dockerhub.com:I have the following in my WORKSPACE file:
Related content from https://github.com/google/go-containerregistry/
The text was updated successfully, but these errors were encountered: