JIB: Unauthorized registry exception for "from" registry
See original GitHub issueDescription
I’m getting registry unauthorized exception when using Jib when “from” image registry is from a authenticated registry.
Failed to execute the build: java.lang.UnsupportedOperationException: java.lang.IllegalStateException: com.google.cloud.tools.jib.api.RegistryUnauthorizedException
The relevant credentials are set in maven settings.xml. On debugging it looks like for baseImageConfiguration object, no credentials are getting set for CredentialsRetreiver.
Info
- Maven version (
mvn -v
) :
maven 3.5.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
401 Unauthorized when using jib to create docker image
I figured that it's strange if we're getting 401 unauthorized the most likely Jib trying to login with some wrong credentials.
Read more >google/jib - Gitter
I am trying to use jib Maven-Plugin instead of the Dockerfile that we ... for help: Unauthorized for registry-1.docker.io/openjdk: 401 Unauthorized [ERROR] ...
Read more >RegistryUnauthorizedException (jib-core 0.9.1 API) - javadoc.io
public class RegistryUnauthorizedException extends RegistryException. Thrown when a registry request was unauthorized and therefore authentication is needed ...
Read more >maven build is failure due to ACR not authorized, why?
See https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized for ...
Read more >Containerizing Spring Boot Application with Jib
I have used the docker registry, but you can use any cloud provider(ECR, GCR, ACR) container registry. To use further options with the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rohanKanojia : JIB API (java) supports it: https://www.javadoc.io/static/com.google.cloud.tools/jib-core/0.12.0/com/google/cloud/tools/jib/api/RegistryImage.html
The main issue here seems to be to get the credential details in f-m-p. But you probably know how to do it… 😄
Closing since #1766 has been merged.