-
Notifications
You must be signed in to change notification settings - Fork 100
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
[Bug]: unknown media-type #2728
Comments
I don't think this is related to issues you mention. Docker Buildx is using OCI media types by default and I am able to successfully push and pull images to/from the Zot registry. From what I can tell the issue is in the Registry cache storage backend and the format is uses when pushing the cache to registry even though it is using OCI media types. Here is a documentation for the Registry cache storage from Docker Buildx: |
@vojtad from what I understand in the issues you mention and the error messages, the root cause is the index has references to layers as opposed to manifests or other image indexes. This comment give a good example for our case: docker/buildx#173 (comment) Per image spec
@rchincha we need to decide what do about these misplaced layers in order |
Thanks for the clarification. This makes sense. I've found an option for Docker Build registry cache backend to change the cache image media type to force it to generate image manifest instead of image index. This might help to workaround the current issue, but I didn't have time to test it, yet. |
Actually I looked for those warning messages. They are just warnings, Those are not errors. |
We've had to stop our migration to zot. I should be able to get back to it in 1 week. I am not sure why but zot actually stopped working at one time, all requests were timing out. It was spamming only these log lines (tens of them per second). I will share more information when I get back to it and also I should have more time to debug potential issues. |
It is possible storage was locked while GC was running (there messages are generated when GC walks through all blobs to check which one of them is referenced by indexes/manifests), resulting in the API timing out until GC finishes. |
https://zotregistry.dev/latest/articles/pprofiling/
|
zot version
v2.1.1
Describe the bug
We are using Zot Registry to host our private Docker registry used mainly in our CI. We build images using Docker Buildx with
--cache-from
and--cache-to
parameters set to registry.Docker Buildx pull and push build cache from/to the registry and it breaks the UI. When I try to open an image with cache in registry it doesn't open because the request fails with the same error you can see in the logs below.
Zot Regsitry also logs these lines in a loop:
Seems like these media types are not part of the OCI spec but the spec also doesn't forbid them. Is there anything that can be done in Zot Registry to allow Docker Buildx cache to work without issues described above? Are you open to solving these issues?
Here are some discussions about Docker Buildx cache manifests:
moby/buildkit#2220
docker/buildx#173
opencontainers/distribution-spec#290
To reproduce
Configuration
Installed Docker with Docker Buildx
Client tool used
Docker Buildx with
--cache-from=type=registry,ref=$CI_REGISTRY_IMAGE_CACHE_TAG
and--cache-to=type=registry,ref=$CI_REGISTRY_IMAGE_CACHE_TAG,mode=max
Seen error: Described above in the log output.
Expected behavior
I would expect registry to allow these cache images. To show them in UI and to not repeat log lines described above.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: