Skip to content

Publishing a docker image to a private registry fails without authentication #28844

Closed
@shahamit

Description

@shahamit

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions