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