Skip to content

Conversation

gigablah
Copy link
Contributor

Newer versions of Docker (1.7 onwards) use ~/.docker/config.json to store login information. The current logic seems to be looking at the wrong path (config instead of config.json). Additionally, the format of the json file has changed; all logins are now nested inside the auths property.

This changes the login comand to use the updated functions from github/docker/docker/cliconfig for loading and saving docker configs. I had to add some code to support writing to the old .dockercfg format as well, based on which file was loaded.

@dselans
Copy link

dselans commented Dec 14, 2015

Nice! I saw this issue early on, but didn't have a chance to fix yet! Will try it out and get it merged soon.

@dselans dselans merged commit ddb6ab5 into dogestry:master Dec 14, 2015
@dselans
Copy link

dselans commented Dec 14, 2015

Done! Thanks again!

@gigablah gigablah deleted the dockercfg branch December 15, 2015 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants