-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing a docker image to a private registry fails without authentication #28844
Comments
Thanks for getting in touch. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. This is a question that would be better suited to Stack Overflow. The only reason to provide the |
This does not seem to be the case, when running with publish set to true and no publishRegistry block I get:
Is there no way to publish to an unauthenticated registry using this plugin currently? |
@sean-duffy-gmex You are correct, the
This explicit check is done because the Docker Engine API requires an authentication header to be sent in an image-push request, and will give a It should be possible for us to default the
It is likely that you can configure |
I think we could consider it to be a bug that you can't easily push to a private registry that doesn't require authentication. Where we fix it will depend on how risky it might be. It sounds quite low risk as I think we'd only be changing the behavior for something that doesn't work at the moment. 2.6.x doesn't feel unreasonable to me. |
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 belowThis is intentional as the code indicates. Could someone please guide me how to push my docker image to an unauthenticated private docker registry?
Thanks
The text was updated successfully, but these errors were encountered: