Closed hotstepper13 closed 6 years ago
What does your ~/docker/config.json
or ~/.dockercfg
file look like, minus any access tokens / sensitive info?
The Authentication information come from the settings.xml (added a server with encrypted password). We tried with working ~/.docker/config.json and also without it so I assume that this isn't related.
Tomorrow I want to trace down the exact version where it breaks. Maybe the changelog can give some hints what happens.
Here is the config.json. As said, we also tried it without it without any change
{
"auths": {
"xxxxxxxxxxxxxxxxx": {}
},
"credsStore": "osxkeychain"
}
Ok, thanks to the pointing of @mattnworb i was able to find a workaround. The issue seems to be related to the osxkechain. If this option is disabled and the config.json recreated everything works fine.
However, I do not understand why the credentials form the maven settings.xml are not used. During the run I can see the following output:
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
on a linux box I see the following output during run
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier, ContainerRegistryAuthSupplier]
Are the credentials inside the settings.xml not supported on mac or do I need to configure the plugin in order to look there?
Similar issue here with a plain setup (without docker-maven-plugin
)
https://github.com/docker/for-mac/issues/1994
@hotstepper13 Does this fix the issue for you? https://github.com/spotify/docker-maven-plugin/pull/381
To be honest i live with the workaround as it also fits better in our approach.
Description
We are using the maven plugin 1.0.0 with set up authentication in the settings.xml Registry is a private registry that require authentication to pull artifacts.
After updating the docker for mac software, the authentication doesn't work anymore.
With
everything works as expected.
After updating to
we got the errormessage
Just for reference, using docker pull is working fine
How to reproduce
Create a dummy project with working authentication while using docker for mac 1.x version. After verify that it works, update to the latest docker for mac version.
What do you expect
Build (and authentication) works same as before
What happened instead
Authentication didnt work anymore
Software:
Full backtrace