You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Palantir Gradle插件构建Docker容器时Jar文件未找到

Spring Boot构建Docker容器时出现COPY文件不存在错误

最近在Windows 10系统下尝试为我的Spring Boot应用构建Docker容器时,遇到了一个棘手的错误:

Task :docker FAILED
COPY failed: stat /var/lib/docker/tmp/docker-builder711841135/myproject.jar: no such file or directory

我当前使用的环境版本信息如下:

  • Docker Community Edition:18.03.0-ce-win59 (16762)
  • Gradle:4.7
  • Java:8

我的简化版build.gradle配置代码如下:

plugins {
    id 'java'
    id 'org.springframework.boot' version '2.0.1.RELEASE'
    id "com.palantir.docker" version "0.19.2"
}
version = '2.0.0'

内容的提问来源于stack exchange,提问作者deamon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 07:22:18