From 1e1b1a3841e87653883a6380275af2f330f625ea Mon Sep 17 00:00:00 2001 From: keriko <2926612857@qq.com> Date: Wed, 1 Apr 2026 10:53:06 +0800 Subject: [PATCH] =?UTF-8?q?OCI=E6=A0=BC=E5=BC=8F=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker_image_puller.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker_image_puller.py b/docker_image_puller.py index 1eaeddb..6326cae 100644 --- a/docker_image_puller.py +++ b/docker_image_puller.py @@ -382,7 +382,12 @@ def get_auth_head( access_token = resp.json()['token'] auth_head = { 'Authorization': f'Bearer {access_token}', - 'Accept': 'application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json' + 'Accept': ', '.join([ + 'application/vnd.docker.distribution.manifest.v2+json', + 'application/vnd.docker.distribution.manifest.list.v2+json', + 'application/vnd.oci.image.index.v1+json', + 'application/vnd.oci.image.manifest.v1+json', + ]) } return auth_head