NotGlop / docker-drag

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

UNAUTHORIZED, authentication required, when running against a private image #24

Open grayaii opened 3 years ago

grayaii commented 3 years ago

$ python docker_pull.py foo/bar:latest [-] Cannot fetch manifest for foo/bar [HTTP 401] b'{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"foo/bar","Action":"pull"}]}]}\n'

But if I run: docker pull foo/bar:latest

it works.

I'm not sure how to pass my creds to the script.

zverev-iv commented 2 years ago

Same thing

NotGlop commented 3 months ago

The script doesn't support authenticating to private registries yet, but will add this in the backlog. Also related to #36