-
Notifications
You must be signed in to change notification settings - Fork 575
Authentication doenst work while pulling #140
Comments
I'm seeing the same behavior. If the image that I'm trying to build is 1) based from an image in a private repo and 2) that base image is not in the local cache then the docker:build command fails with an authentication issue. My auth data is stored in my .m2/settings.xml config. What's interesting is that I can docker:push images that I build just fine, so the auth is working with some goals. It just appears to not be working when I need to pull a base image to build. The configuration from my pom.xml
Here's the log from the error that I receive
If I manually |
I stumble upon this issue too. The OS is Debian 8.3, maven 3.3.3, docker client is 1.9.1. I use 0.4.0 version of the plugin. The POM plugins configuration is similar to:
The Dockerfile define a FROM from public registry but the plugin is unable to pull from it because:
|
Any chance to see this issue fixed ? It makes impossible to automate build/push image from a mixed private/public repositories environment. |
I am not sure if this is still an issue, since the reports are pretty old, but #339 fixes all of the root causes |
We have the same Problem as menitoned by #104 (comment)
I allready created an issue within the docker-client but in the meantime i am note sure if it located in the client or the plugin.
Therefore here the stuff again:
we have setup artifactory as private registry and are able to push images to the registry by using the spotify maven plugin. Yesterday we discovered that if I clean the local cache our builds are no longer succeeding. After doing some research it looks like that the client isnt authenticating while pulling images from the remote registry.
In our logs I saw 3 requests to /v2/ which are answered with http status 401
After that I saw another 2 requests which seems to guess the artifact location.
While pushing I see one request to /v2/ and the 401 response. After that the client will authenticate and everything works well.
If I use plain docker everything is working as exspected.
We set up authentication by having a server with ID "artifactory" in our settings.xml and reference this by having the corrosponding entry.
I tried the latest tagged version of the spotify-docker-plugin which uses the latest tagged version of the docker-client.
Can someone verify if this is a bug in the library or a misuse? (In case of misuse any hint what we are doing wrong would be appreciatiated).
Thanks in advance and best regards
Frank
The text was updated successfully, but these errors were encountered: