-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Bug]: ~/. docker/config.json with auths null throws an error #7296
Comments
Im encounting the same issue. Manually modifying |
I am getting the same issue. What is the solution for this? |
The issue belong to docker-java, I have created docker-java/docker-java#2138 |
Update your This works for me on testcontainers version 1.18.3 and Docker Desktop for Windows version 4.21.1. |
Can also confirm after a fresh Docker Desktop 4.21.1 (114176) install that this issue is in 1.18.3 - The suggested "auths": {} fix works |
which .docker folder? can anyone show me a relative path? |
~/. docker/config.json |
Im encounting the same issue. Manually modifying config.json works. |
You are a life saver. works perfectly, thanks |
I have the same issue but no config.json file in folder .docker ((( |
try creating one
{ |
Done as suggested, but looks like error still exists: Cannot invoke "java.util.Map.entrySet()" because the return value of "com.github.dockerjava.core.DockerConfigFile.getAuths()" is null |
Please try replacing
with
|
It was my mistake in dir identification for config.json revision... This file (with 'null') existed from the very Docker Desktop installation but I looked in wrong folder. |
FYI to save you a Google: Windows users will find the config file in |
Just to be explicit, this issue will be automatically fixed in Testcontainers for Java once we use the new |
I should have closed this one once #7423 was merged 😬 There will be a new release on Monday and it will include docker-java 3.3.3 which container this fix. |
Module
Core
Testcontainers version
1.18.1
Using the latest Testcontainers version?
No
Host OS
Windows
Host Arch
x64
Docker version
Client: Cloud integration: v1.0.35 Version: 24.0.2 API version: 1.43 Go version: go1.20.4 Git commit: cb74dfc Built: Thu May 25 21:53:15 2023 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.21.0 (113844) Engine: Version: 24.0.2 API version: 1.43 (minimum version 1.12) Go version: go1.20.4 Git commit: 659604f Built: Thu May 25 21:52:17 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
What happened?
Running integrations test would not work because testcontainers could not start. The error is caused by a null value in dockers config.json. I recently did a fresh install of Docker Desktop so that my previous config.json most likey got replaced/deleted. The freshly created config.json looks like this:
{ "auths": null, "credsStore": "desktop", "plugins": { "-x-cli-hints": { "enabled": "true" } } }
After fiddling around i replaced the null value for "auths" with an empty object and it worked flawlessly. My config.json now looks like this:
{ "auths": {}, "credsStore": "desktop", "plugins": { "-x-cli-hints": { "enabled": "true" } } }
Relevant log output
Additional Information
No response
The text was updated successfully, but these errors were encountered: