Closed
Description
I have a private docker registry setup on our local infrastructure. It is configured without any authentication. I am trying to build and push the docker image to this registry with the spring-boot:build-image
command but I get an error "Invalid Docker publish registry configuration, either token or username/password must be provided". My maven plugin configuration looks like below
<configuration>
<image>
<name><vm-name>:5000/dev/my-spring-boot-app:v1</name>
<publish>true</publish>
</image>
<docker>
<publishRegistry>
<url>http://<vm-name>:5000</url>
</publishRegistry>
</docker>
</configuration>
This is intentional as the code indicates. Could someone please guide me how to push my docker image to an unauthenticated private docker registry?
Thanks