小编adi*_*ant的帖子

spring-boot-maven-plugin:build-image 因 400 Bad Request 失败

我正在尝试使用 spring-boot-maven-plugin:build-image 目标为我的基本 Spring Boot 应用程序构建一个 docker 镜像。

它失败并出现以下错误:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.0-M2:build-image (default-cli) on project spring-docker: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.4.0-M2:build-image failed: **Docker API call to 'localhost/v1.24/containers/eaaba1e2a727547ae53df3c1f7c4420ba821914b4392ea12ff47326ee03eeaa5/start' failed with status code 400 "Bad Request"** -> [Help 1]
Run Code Online (Sandbox Code Playgroud)

我已经尝试过Spring Boot 2.3.3.RELEASE2.4.0-M2,我得到了同样的错误。

我在 Windows 10 机器上运行 Docker 桌面。

$ docker version

**Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40**
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:43:18 2020
 OS/Arch:           windows/amd64 …
Run Code Online (Sandbox Code Playgroud)

maven docker spring-boot

6
推荐指数
1
解决办法
547
查看次数

标签 统计

docker ×1

maven ×1

spring-boot ×1