Dear All,
I hope you are doing well.
I am currently facing an issue with Docker authentication on Windows that impacts my ability to use the Jib Maven Plugin to push images to my repository. Despite multiple attempts to log in, it seems my Docker credentials are not saved correctly. Specifically, the config.json
file remains either empty or misconfigured, as shown:
{
"auths": {
"https://index.docker.io/v1/": {}
},
"credsStore": "desktop"
}
The problem arises when using the Jib Maven Plugin with the following configuration:
The build process results in the following warnings and errors:
[WARNING] Got output: credentials not found in native keychain
[WARNING] The credential helper (docker-credential-desktop) has nothing for the server URL: registry.hub.docker.com
[WARNING] Got output: credentials not found in native keychain
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.3:build (default) on project korfballteamapi: 416 Requested Range Not Satisfiable
[ERROR] PATCH
[ERROR] {"errors":[{"code":"RANGE_INVALID","message":"invalid content range"}]}
I am stuck on this one! I suspect the issue’s root is related to authentication not being filled correctly in the auths
section of the config.json
file. This, in turn, prevents the successful push of Docker images.
I would appreciate any guidance or solutions you could give me to fix this issue. Please let me know if you need additional details or logs.
Thank you so much for your help.
Best regards,
Richard Smith-Uchotski