containerregistry icon indicating copy to clipboard operation
containerregistry copied to clipboard

auth error when using default config.json from docker 2.0.0.3

Open jmhodges opened this issue 5 years ago • 4 comments

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 https://github.com/bazelbuild/rules_docker/issues/704)

jmhodges avatar Mar 04 '19 05:03 jmhodges

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.

jmhodges avatar Mar 04 '19 05:03 jmhodges

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

f0rmiga avatar Apr 11 '19 05:04 f0rmiga

Ping!

jmhodges avatar Aug 28 '19 02:08 jmhodges

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.

jonjohnsonjr avatar Mar 05 '20 00:03 jonjohnsonjr