一、该问题的重现步骤是什么?
1.mvn clean package dockerfile:build dockerfile:push 按照教程一步一步操作,报错,用的是2.9.0版本
2.
3.
二、你期待的结果是什么?实际看到的又是什么?
harbor 能正常登录
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
docker 安装在 centos7
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
org.apache.maven.plugin.MojoExecutionException: Could not push image
at com.spotify.plugin.dockerfile.PushMojo.execute (PushMojo.java:90)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.spotify.docker.client.exceptions.DockerException: Get "https://192.168.121.15/v2/": Service Unavailable
at com.spotify.plugin.dockerfile.LoggingProgressHandler.handleError (LoggingProgressHandler.java:105)
at com.spotify.plugin.dockerfile.LoggingProgressHandler.progress (LoggingProgressHandler.java:63)
at com.spotify.docker.client.ProgressStream.tail (ProgressStream.java:77)
at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call (DefaultDockerClient.java:2754)
at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call (DefaultDockerClient.java:2738)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
[INFO] The push refers to repository [192.168.121.15/blade/blade-auth]
[ERROR] Get "https://192.168.121.15/v2/": Service Unavailable
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for BladeX 2.9.0.RELEASE:
[INFO]
[INFO] BladeX ............................................. SUCCESS [ 0.871 s]
[INFO] blade-common ....................................... SUCCESS [ 1.916 s]
[INFO] blade-service-api .................................. SUCCESS [ 0.184 s]
[INFO] blade-user-api ..................................... SUCCESS [ 1.189 s]
[INFO] blade-system-api ................................... SUCCESS [ 2.102 s]
[INFO] blade-auth ......................................... FAILURE [ 14.275 s]
[INFO] blade-gateway ...................................... SKIPPED
[INFO] blade-ops .......................................... SKIPPED
[INFO] blade-admin ........................................ SKIPPED
[INFO] blade-dict-api ..................................... SKIPPED
[INFO] blade-develop ...................................... SKIPPED
[INFO] blade-scope-api .................................... SKIPPED
[INFO] blade-ops-api ...................................... SKIPPED
[INFO] blade-flow-api ..................................... SKIPPED
[INFO] blade-flow ......................................... SKIPPED
[INFO] blade-flow-design .................................. SKIPPED
[INFO] blade-log .......................................... SKIPPED
[INFO] blade-report ....................................... SKIPPED
[INFO] blade-resource-api ................................. SKIPPED
[INFO] blade-resource ..................................... SKIPPED
[INFO] blade-swagger ...................................... SKIPPED
[INFO] blade-turbine ...................................... SKIPPED
[INFO] blade-xxljob ....................................... SKIPPED
[INFO] blade-xxljob-admin ................................. SKIPPED
[INFO] blade-plugin ....................................... SKIPPED
[INFO] blade-plugin-api ................................... SKIPPED
[INFO] blade-desk-api ..................................... SKIPPED
[INFO] blade-service ...................................... SKIPPED
[INFO] blade-desk ......................................... SKIPPED
[INFO] blade-system ....................................... SKIPPED
[INFO] blade-user ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.037 s
[INFO] Finished at: 2022-01-04T18:59:47+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.13:push (default-cli) on project blade-auth: Could not push image: Get "https://192.168.121.15/v2/": Service Unavailable -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :blade-auth
chengtanggen@chengtg BladeX %
扫一扫访问 Blade技术社区 移动端