-
Notifications
You must be signed in to change notification settings - Fork 358
Open
Description
I know similar issues were reported in the past, but could not find a possible solution for my issue. I have 2 very similar (from dependencies and build) projects, and one works when using ./gradlew dockerBuildImage and the other one fails with
java.lang.RuntimeException: java.io.IOException: Broken pipe
at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:195)
at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:9)
at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:228)
at com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
Within the failing project, running cd build; docker build docker works to create the image:
[+] Building 0.3s (10/10) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 323B 0.0s
=> [internal] load metadata for docker.io/library/amazoncorretto:21 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/5] FROM docker.io/library/amazoncorretto:21 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 12.71MB 0.1s
=> CACHED [2/5] WORKDIR /app 0.0s
=> [3/5] COPY libs libs/ 0.1s
=> [4/5] COPY resources resources/ 0.0s
=> [5/5] COPY classes classes/ 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:ecbbca4d182b5429c2279dc8d46172179e94e3d80275869c4c53411fe21ba722 0.0s
The working project uses the identical versions for Gradle and gradle-docker-plugin, and both use OpenJDK Runtime Environment Corretto-21.0.8.9.1 (build 21.0.8+9-LTS).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels