一、该问题的重现步骤是什么?
docker推送镜像时,到服务器(局域网本地)出现https地址,地址访问错误,推送失败。
按照文档里的配置了。
2.
3.
二、你期待的结果是什么?实际看到的又是什么?
image推送成功;出现https路径,推送失败
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
bladex2.5.0;win10
四、请提供详细的错误堆栈信息,这很重要。
[INFO] Building blade-auth 2.5.0.RELEASE [6/44] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-auth --- [INFO] Deleting D:\project\bladex\BladeX\blade-auth\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blade-auth --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ blade-auth --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 20 source files to D:\project\bladex\BladeX\blade-auth\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ blade-auth --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory D:\project\bladex\BladeX\blade-auth\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ blade-auth --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ blade-auth --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ blade-auth --- [INFO] Building jar: D:\project\bladex\BladeX\blade-auth\target\blade-auth.jar [INFO] [INFO] --- spring-boot-maven-plugin:2.1.13.RELEASE:repackage (default) @ blade-auth --- [INFO] Replacing main artifact with repackaged archive [INFO] [INFO] --- maven-antrun-plugin:1.3:run (default) @ blade-auth --- [INFO] Executing tasks [copy] Copying 1 file to D:\project\bladex\BladeX\target [INFO] Executed tasks [INFO] [INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-auth --- [INFO] dockerfile: null [INFO] contextDirectory: D:\project\bladex\BladeX\blade-auth [INFO] Building Docker context D:\project\bladex\BladeX\blade-auth [INFO] Path(dockerfile): null [INFO] Path(contextDirectory): D:\project\bladex\BladeX\blade-auth [INFO] [INFO] Image will be built as 192.168.0.10/blade/blade-auth:2.5.0.RELEASE [INFO] [INFO] Step 1/8 : FROM anapsix/alpine-java:8_server-jre_unlimited [INFO] [INFO] Pulling from anapsix/alpine-java [INFO] Image 169185f82c45: Pulling fs layer [INFO] Image 4346af5b5a4f: Pulling fs layer [INFO] Image 169185f82c45: Downloading [INFO] Image 4346af5b5a4f: Downloading [INFO] Image 169185f82c45: Download complete [INFO] Image 169185f82c45: Extracting [INFO] Image 169185f82c45: Pull complete [INFO] Image 4346af5b5a4f: Download complete [INFO] Image 4346af5b5a4f: Extracting [INFO] Image 4346af5b5a4f: Pull complete [INFO] Digest: sha256:d97f12170501e5faea7f86f9a9205d05f5cadcf7fb34fb53c3a7cef893e9cdd9 [INFO] Status: Downloaded newer image for anapsix/alpine-java:8_server-jre_unlimited [INFO] ---> 49d744fbb526 [INFO] Step 2/8 : MAINTAINER smallchill@163.com [INFO] [INFO] ---> Running in 92334e683e3d [INFO] Removing intermediate container 92334e683e3d [INFO] ---> bd5424c5eb55 [INFO] Step 3/8 : RUN mkdir -p /blade/auth [INFO] [INFO] ---> Running in e256506ff3a7 [INFO] Removing intermediate container e256506ff3a7 [INFO] ---> 38b81bff87f7 [INFO] Step 4/8 : WORKDIR /blade/auth [INFO] [INFO] ---> Running in 145d148aed51 [INFO] Removing intermediate container 145d148aed51 [INFO] ---> d79b4aaf5688 [INFO] Step 5/8 : EXPOSE 8100 [INFO] [INFO] ---> Running in 21f6f5af63d6 [INFO] Removing intermediate container 21f6f5af63d6 [INFO] ---> bffc5a4e78ce [INFO] Step 6/8 : ADD ./target/blade-auth.jar ./app.jar [INFO] [INFO] ---> a28359f5051a [INFO] Step 7/8 : ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] [INFO] [INFO] ---> Running in d8e3fcd2b01d [INFO] Removing intermediate container d8e3fcd2b01d [INFO] ---> 22c1b855e4b4 [INFO] Step 8/8 : CMD ["--spring.profiles.active=test"] [INFO] [INFO] ---> Running in 5fa448ddd942 [INFO] Removing intermediate container 5fa448ddd942 [INFO] ---> f18be02cf465 [INFO] [Warning] One or more build-args [JAR_FILE] were not consumed [INFO] Successfully built f18be02cf465 [INFO] Successfully tagged 192.168.0.10/blade/blade-auth:2.5.0.RELEASE [INFO] [INFO] Detected build of image with id f18be02cf465 [INFO] Building jar: D:\project\bladex\BladeX\blade-auth\target\blade-auth-docker-info.jar [INFO] Successfully built 192.168.0.10/blade/blade-auth:2.5.0.RELEASE [INFO] [INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ blade-auth --- [INFO] The push refers to repository [192.168.0.10/blade/blade-auth] [ERROR] Get https://192.168.0.10/v2/: dial tcp 192.168.0.10:443: connect: connection refused [WARNING] An attempt failed, will retry 1 more times 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:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) 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.0.10/v2/: dial tcp 192.168.0.10:443: connect: connection refused 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.0.10/blade/blade-auth] [ERROR] Get https://192.168.0.10/v2/: dial tcp 192.168.0.10:443: connect: connection refused [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.0.10 /v2/: dial tcp 192.168.0.10:443: connect: connection refused -> [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-rf :blade-auth
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端