【发布时间】:2019-08-24 14:05:23
【问题描述】:
我在 Windows 10 家用笔记本电脑中使用 docker 工具箱。尝试使用我一直在研究的 springboot 项目创建 docker 映像。按照https://spring.io/guides/gs/spring-boot-docker/上的教程进行操作
过去三天一直在努力解决这个错误
Apr 03, 2019 11:52:57 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://192.168.99.100:2376: Connection reset by peer: socket write error
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.027 s
[INFO] Finished at: 2019-04-03T11:52:57+05:30
[INFO] Final Memory: 63M/433M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.9:build (default-cli) on project IssueTracker: Could not build image: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: com.spotify.docker.client.shaded.org.apache.http.client.ClientProtocolException: Cannot retry request with a non-repeatable request entity: Connection reset by peer: socket write error -> [Help 1]
我查找的许多网站都说这可能与禁用 TLS 有关。我试图公开主机,禁用 tls 但问题仍然存在。任何帮助将不胜感激。
以下是我的maven插件配置
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<repository>${docker.image.prefix}/${project.artifactId}</repository>
</configuration>
</plugin>
【问题讨论】:
-
您确定您的 Docker 守护进程及其套接字正在运行吗?如果在命令行中执行
docker ps之类的命令会发生什么? -
Docker ps 正在运行。但 docker ps 没有返回空。 Docker 版本正在通过返回版本。
标签: maven spring-boot docker dockerfile docker-toolbox