Open rolfw opened 8 years ago
Oops, never mind...
I found out it was my mistake: I assumed we didn't use authentication since I never use credentials. But it turned I logged in once with Docker when our devops engineer instructed me to do so when setting up the registry. After providing credentials it worked perfectly.
As a suggestion, it would be good if the plugin would respond with an authentication failure instead. Currently it suggests something is wrong with the URL or setup.
I won't close the issue then, in case you want to keep this as a feature/improvement request.
Thanks for finding out ;-) I will have a look at the error message, but it could be, that Docker itself is not very specific about the error condition. Typically the plugin only passes through the error message coming from the Docker daemon.
In one of the next versions d-m-p will also look into ~/.docker/config.json
in order to pick up the proper authentication when a docker login
has been done previously.
I'm trying to pull images from a private repository. When I run
$ mvn docker:start
I get the following error:However, the URL that I provided in the
<name/> property is correct and when I first run
$ docker pull somehostname.com:5000/v2/some-namespace/some-image:latestand then try
$ mvn docker:run` again it works without problems.When I separate the repository and name and I include
v2
it fails because the regex doesn't match:<name>some-namespace</name>
<repository>somehostname.com:5000/v2</repository>
What should be the correct configuration to make this work without manually pulling images first?