containerregistry
containerregistry copied to clipboard
auth error when using default config.json from docker 2.0.0.3
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)
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.
I'm being hit by this constantly as every time I restart Docker, it reconstructs the auths
key in the config object.
Ping!
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.