NotGlop / docker-drag

Download image from the Docker Hub HTTPS API
GNU General Public License v3.0
725 stars 199 forks source link

Downloading container image from Azure Container Registry #36

Closed as9333 closed 5 months ago

as9333 commented 11 months ago

Hello,

I am trying to download a container image from my azure container registry. The azure container registry has username and password authentication.

But I am facing the below error.

Traceback (most recent call last):
  File "/home/user/docker_pull.py", line 72, in <module>
    auth_head = get_auth_head('application/vnd.docker.distribution.manifest.v2+json')
  File "/home/user/docker_pull.py", line 54, in get_auth_head
    access_token = resp.json()['token']
KeyError: 'token'
NotGlop commented 5 months ago

Will add auth support in a future commit. Followed in #24