-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Build image failed: peer not authenticated #542
Comments
@coollog I tried to update to version 0.9.4, but it is still this error |
@coollog <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 |
@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 |
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
The text was updated successfully, but these errors were encountered: