Closed itliusir closed 6 years ago
Hi @itliusir this is most likely the same issue as #541. We are working on a fix for this.
@itliusir @axpira We just released version 0.9.4
. Try updating to that version and your issue should hopefully be fixed :)
@coollog I tried to update to version 0.9.4, but it is still this error
@coollog pom config and maven setting config
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>0.9.4</version>
<configuration>
<from>
<image>harbor.server64.cn/base/jdk8:152b16_alpine</image>
</from>
<to>
<image>harbor.server64.cn/business/jib-demo</image>
<credHelper>harbor.server64.cn</credHelper>
</to>
<container>
<mainClass>com.demo.jib.JibDemoApplication</mainClass>
<ports>
<port>8080</port>
</ports>
<format>OCI</format>
</container>
<allowInsecureRegistries>true</allowInsecureRegistries>
</configuration>
</plugin>
my harbor username and password
<server>
<id>harbor.server64.cn</id>
<username>test</username>
<password>Test1234</password>
</server>
@itliusir Hmm, do you happen to be using a self-signed certificate for your private registry?
@coollog yeah,I use the docker private registry,like harbor. Can you tell me how to configure it?
@itliusir @velo provided a solution here - let me know if that works!
@coollog I don't understand too much. I am referring to the jdk image. What should I do with the keystore?
<credHelper>harbor.server64.cn</credHelper>
This doesn't seem right. It means you should have a credential helper (an executable) named docker-credential-harbor.server64.cn
on your $PATH
that you can run, which will provide a credential for auth. Do you have the credential helper binary? I don't think so, because in your first comment, you had <credHelper>releases</credHelper>
. Also, I see you put your credential in settings.xml
. Try removing <credHelper>harbor.server64.cn</credHelper>
and try again.
@chanseokoh it is still this error.
@itliusir @velo wrote up draft of instructions for how to use self signed certificates - https://github.com/GoogleContainerTools/jib/pull/618/files - it should help you set up self-signed certificates Also, since you are using Harbor, the Harbor HTTPS guide may help
Description of the issue: When I executed the command
mvn compile jib:build
, I got the following error:Build image failed: peer not authenticated
Steps to reproduce:
Environment: CentOs7.4、maven 3.5.0、Spring Boot 1.5.6、Docker 17.09.0-ce
jib-maven-plugin
Configuration:Log output:
Additional Information: I use maven