Skip to content

Commit 7b60c90

Browse files
author
Christian Weichel
committed
[registry-facade] Support Docker Image Manifest v2 requests
i.e. support `application/vnd.docker.distribution.manifest.v2+json` as value for the `Accept` header. Fixes #2714
1 parent 93a0144 commit 7b60c90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/registry-facade/pkg/registry/manifest.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ func (mh *manifestHandler) getManifest(w http.ResponseWriter, r *http.Request) {
109109
continue
110110
}
111111

112-
if mediaType == ociv1.MediaTypeImageManifest || mediaType == "*" {
112+
if mediaType == ociv1.MediaTypeImageManifest ||
113+
mediaType == images.MediaTypeDockerSchema2Manifest ||
114+
mediaType == "*" {
115+
113116
acceptType = ociv1.MediaTypeImageManifest
114117
break
115118
}

0 commit comments

Comments
 (0)