Closed MrXhh closed 7 months ago
I was not able to reproduce the original 404 issue on any registries I tried. What registry are you using where you are seeing it? (I typically use the registry:2
image when testing a localhost registry)
I was not able to reproduce the original 404 issue on any registries I tried. What registry are you using where you are seeing it? (I typically use the
registry:2
image when testing a localhost registry)我无法在我尝试的任何注册表上重现原始的404问题。你在哪里看到的是什么注册表?(我通常在测试本地主机注册表时使用registry:2
镜像)
docker run -d -p 5000:5000 --name registry registry:2
docker buildx build --platform linux/386,linux/amd64 ...
I pushed the image inbetween step 2 and 3 but still wasn't able to reproduce the 404. I'm concerned about changing the accept header here because it affects all requests to V2 registries, not just the image manifest requests.
Thanks, I am able to reproduce now. I will try your fix.
@microsoft-github-policy-service agree
Looks great, thanks for the contribution @MrXhh!
1) selected image tag: Inspect Image Manifest 2) Request to http://localhost:5000/v2/xxx/manifests/xxx failed with status 404: Not Found