springboot 部署到docker容器中报错

leeoohoo 发布于 2018/06/10 11:26
阅读 463
收藏 0

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building discovery 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ discovery ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ discovery ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/lee/lee/java-project/platfrom/discovery/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ discovery ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/lee/lee/java-project/platfrom/discovery/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ discovery ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ discovery ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ discovery ---
[INFO] Building jar: /Users/lee/lee/java-project/platfrom/discovery/target/discovery-0.0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- spring-boot-maven-plugin:1.4.5.RELEASE:repackage (default) @ discovery ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ discovery ---
[INFO] Installing /Users/lee/lee/java-project/platfrom/discovery/target/discovery-0.0.1-SNAPSHOT.jar to /Users/lee/.m2/repository/com/discovery/0.0.1-SNAPSHOT/discovery-0.0.1-SNAPSHOT.jar
[INFO] Installing /Users/lee/lee/java-project/platfrom/discovery/pom.xml to /Users/lee/.m2/repository/com/discovery/0.0.1-SNAPSHOT/discovery-0.0.1-SNAPSHOT.pom
[INFO] 
[INFO] --- docker-maven-plugin:1.0.0:build (build-image) @ discovery ---
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
[INFO] Copying /Users/lee/lee/java-project/platfrom/discovery/target/discovery-0.0.1-SNAPSHOT.jar -> /Users/lee/lee/java-project/platfrom/discovery/target/docker/discovery-0.0.1-SNAPSHOT.jar
[INFO] Building image 47.106.187.140:5000/jacky/discovery:0.0.1-SNAPSHOT
Jun 10, 2018 10:59:27 AM org.apache.http.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {}->http://47.106.187.140:5678: Connection reset
Jun 10, 2018 10:59:27 AM org.apache.http.impl.execchain.RetryExec execute
信息: Retrying request to {}->http://47.106.187.140:5678
Jun 10, 2018 11:00:42 AM org.apache.http.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {}->http://47.106.187.140:5678: Connection reset
Jun 10, 2018 11:00:42 AM org.apache.http.impl.execchain.RetryExec execute
信息: Retrying request to {}->http://47.106.187.140:5678
Jun 10, 2018 11:01:57 AM org.apache.http.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {}->http://47.106.187.140:5678: Connection reset
Jun 10, 2018 11:01:58 AM org.apache.http.impl.execchain.RetryExec execute
信息: Retrying request to {}->http://47.106.187.140:5678
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:09 min
[INFO] Finished at: 2018-06-10T11:03:13+08:00
[INFO] Final Memory: 49M/400M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (build-image) on project discovery: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.net.SocketException: Connection reset -> [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

Process finished with exit code 1

 

 

总是报这样的错 怎么解决啊 有大神好心指点一下吗

加载中
0
yysf
yysf

http://47.106.187.140:5678  这是什么??

0
leeoohoo
leeoohoo

引用来自“yysf”的评论

http://47.106.187.140:5678  这是什么??

这是我服务器的地址和docker 的端口

 

0
护士的小黄瓜
护士的小黄瓜
  1. 都写的很明显了,docker远程没打卡,要么就是没配置好,连接不上远程docker
0
leeoohoo
leeoohoo

引用来自“红薯的小黄瓜”的评论

  1. 都写的很明显了,docker远程没打卡,要么就是没配置好,连接不上远程docker

可是我服务器上 docker 确认是打开的啊

返回顶部
顶部