question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker-py login doesn't save credentials to $HOME/.docker/config.json

See original GitHub issue
docker-py (1.8.0)
Python 2.7.6
Docker version 1.10.3, build 20f81dd

The docker login cli saves the creds to $HOME/.docker/config.json. This api call doesn’t seem to do the same. Not that familiar with docker-py, does it save the creds in the object? How does it work exactly?

In the docker-py docs supposedly they are identical except for being non-interactive.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

15reactions
mbroomfield-r7commented, Oct 31, 2016

why couldn’t docker-py’s login function simply have a persist parameter, which, on success, writes the authentication out to `$HOME/.docker/config.json? Seems simple enough.

0reactions
mgallusciocommented, Aug 30, 2019

@shin- Is this still the case with docker-py?

I see a parameter on the login method for the docker config file, but when I pass the path it does not seem to write anything to the file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker login - Docker Documentation
You can log into any public or private repository for which you have credentials. When you log in, the command stores credentials in...
Read more >
Why docker login command saves unencrypted password on ...
I've used docker login command and passed my credentials and I got warning WARNING: login credentials saved in /Users/{my_username}/. docker/config. json . I' ......
Read more >
Encrypted Credentials for Docker Login - Lei Mao's Log Book
When we run docker login , we will often see a warning message that our password is saved encrypted in the Docker configuration...
Read more >
Docker login results in unencrypted password warning - IBM
After you log in to your private image registry with the Docker login command, a warning is displayed that indicates that your password...
Read more >
I need plain text credentials in my config.json, how do I disable ...
Hiding docker-credential-pass from which / PATH and using separate config for example $PWD/.docker/config.json is required to make both Base64 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found