-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configContainsAuth
check throws exception for valid docker config files.
#477
Comments
+1 this is also causing our CI to fail since the update to 0.36.0 Redacted contents of
Trace output of devcontainer up:
|
Thank you both for the reports, taking a look. |
joshspicer
added a commit
that referenced
this issue
Apr 5, 2023
joshspicer
added a commit
that referenced
this issue
Apr 5, 2023
* null coalesce when detecting docker cred helpers (#477) * remove whitespace
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was having issues with the cli authenticating to a private registry. After digging through the trace logs and searching the source code I discovered that the following line was causing me grief. The issue is that the
configContainsAuth
check will throw an exception onObject.keys(dockerConfig.credHelpers)
when the$HOME/.docker/config.json
file does not contain an entry forcredHelpers
.You could probably just nullish coalesce the access into the
.credHelpers
and.auths
to solve the issue, something like below?The text was updated successfully, but these errors were encountered: