How to execute docker login command in python -


i beginner in docker , trying execute docker login command in python. here how code looks, client.login(username, password, registry=data["url"]) error docker.errors.apierror: 500 server error: internal server error url: xxxx tag= xxxx ("get xxx: no basic auth credentials")

i tried running login command through terminal , after that, when run python script, gives me output properly.

after finding out lot, think problem docker version. docker documentation states version after 17.06 must run command aws ecr get-login --no-include-email question is, right in assuming flag --no-include-email problem? if yes, how can include in python script? hope explaining problem properly.

thanks in advance.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -