-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Manifest not found for buildah produced images #114
Comments
Hi, sorry for the delay. So, if I'm understanding what you did, you have a private docker registry server and you are using buildah container client ? The UI was built especially for docker registries, that means using docker/distribution is mandatory (or something implanting the full API). Since the UI is using the The buildah-push command says :
If that's true, the interface should work fine without any changes. |
Thanks for the reply. Yes, you got it right. I built the image using buildah and I pushed it to my registry which is the official docker registry image. I guess the manifest that buildah produce has some (minor?) differences between the one produced by When I ask for the manifest by doing this request
I get the following response:
On the other hand, when I perform the same request for a different image, the registry answers with a json file containing the manifest. After a quick search I bumped in this merge request: https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/31127 which seems to fix a similar problem:
And they suggest to
This issue is also pretty interesting: |
It actually is that simple: where you do this: you just need to do this instead: Just tested locally and it works like a charm. |
Hi, Sorry for the late reply, I cannot give long term guarantees on this feature but I added the header as you said and I checked that it still worked for images made by docker. I'm glad it works for you 😄. |
Oh, and I added you in the contributors list : https://joxit.dev/docker-registry-ui/CONTRIBUTORS 😉 |
Thanks! Glad to be there 😎 |
Bug description
After creating an image using buildah instead of docker, I pushed it to my private registry (v2). Everything works perfectly (I can push and pull from it), but the UI says it cannot find the manifest, so no metadata is available.
I don't know if it is an issue with buildah, but since they claim to be OCI compliant I think that maybe docker-registry-ui should be compliant to.
How to Reproduce
create container:
buildah --name test_container from alpine:edge
finalize image:
buildah commit test_container <REGISTRY_HOST>/test_image:latest
push image:
buildah push <REGISTRY_HOST>/test_image:latest
Screenshots
System information
The text was updated successfully, but these errors were encountered: