From 0036d93e8f6eb1df4e01e60c4f1c9c77ea43461c Mon Sep 17 00:00:00 2001 From: "Wang, Arron" Date: Mon, 13 Mar 2023 17:08:18 +0800 Subject: [PATCH] client: Fix failed to pull ubuntu image from docker.io Manifests list feature in oci-distribution is already implemented, default image in docker.io like busybox use IMAGE_MANIFEST_LIST_MEDIA_TYPE, but ubuntu image use OCI_IMAGE_INDEX_MEDIA_TYPE. Fixes: #27 Signed-off-by: Wang, Arron --- src/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.rs b/src/client.rs index 84e1dda6..5482ebf3 100644 --- a/src/client.rs +++ b/src/client.rs @@ -696,6 +696,7 @@ impl Client { if media_type != IMAGE_MANIFEST_MEDIA_TYPE && media_type != OCI_IMAGE_MEDIA_TYPE && media_type != IMAGE_MANIFEST_LIST_MEDIA_TYPE + && media_type != OCI_IMAGE_INDEX_MEDIA_TYPE { return Err(OciDistributionError::UnsupportedMediaTypeError(media_type)); }