Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

auth error when using default config.json from docker 2.0.0.3 #144

Open
jmhodges opened this issue Mar 4, 2019 · 4 comments
Open

auth error when using default config.json from docker 2.0.0.3 #144

jmhodges opened this issue Mar 4, 2019 · 4 comments

Comments

@jmhodges
Copy link

jmhodges commented Mar 4, 2019

The config.json client config file generated by docker 2.0.0.3 (the latest stable version) on macOS generates a config file that seems to cause errors here.

I get this error:

Error resolving credentials for index.docker.io/library/mysql@sha256:8c15b2612051244d0a2b6ceb6f9bf82ddc0e909555c1067c098e5f935e2751a7: Unsupported entry in "auth" section of Docker config: {}

with the below config.json:

{
  "stackOrchestrator" : "swarm",
  "credSstore" : "osxkeychain",
  "auths" : {
    "https://index.docker.io/v1/" : {

    }
  }
}

Forgive me if this isn't specific enough to find the problem. I'm working with this project through my use of rules_docker. (I made a ticket over there, too bazelbuild/rules_docker#704)

@jmhodges
Copy link
Author

jmhodges commented Mar 4, 2019

Replacing the auths section of the json with just "auths" : {} fixes the problem. Seems like there's just a new format this lib has to handle.

@f0rmiga
Copy link

f0rmiga commented Apr 11, 2019

I'm being hit by this constantly as every time I restart Docker, it reconstructs the auths key in the config object.

@jmhodges
Copy link
Author

Ping!

@jonjohnsonjr
Copy link
Contributor

I think this is also caused by credSstore being incorrectly capitalized, i.e. not credsStore... are you still hitting this? It wouldn't be too hard to check both keys.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants