You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of the problem is that dockertest doesn't seem to have any support for docker-credential-<name> credential helpers.
Your config file specifies docker-credential-gcloud should be used for multiple registries.
Other config files might have empty entries under auth because they use the default platform helper, e.g. docker-credential-osxkeychain
Preflight checklist
Ory Network Project
No response
Describe the bug
When a
~/.docker/config.json
file has an emptyauths
member, thedocker.NewAuthConfigurationsFromDockerCfg()
function returns a misleading error.Reproducing the bug
Given this
main.go
:I see this error logged:
My Docker
~/.docker/config.json
looks like this:Relevant log output
No response
Relevant configuration
No response
Version
v3.10.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
None
Additional Context
It looks like in the
config.json
parsing, if theauths
object has no members:dockertest/docker/auth.go
Lines 119 to 121 in f37306e
then an assumption is made that the config file will be a
map[string]dockerConfig
:dockertest/docker/auth.go
Lines 124 to 127 in f37306e
The structure of my
config.json
doesn't match that. Myconfig.json
was recently updated after adocker logout ghcr.io
.The text was updated successfully, but these errors were encountered: