$ 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.
$ 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.