Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Progress after "building image to Docker daemon" #4339

Open
heronster opened this issue Dec 8, 2024 · 2 comments
Open

No Progress after "building image to Docker daemon" #4339

heronster opened this issue Dec 8, 2024 · 2 comments

Comments

@heronster
Copy link

Creating new issue for #4267 as it still does not work on Windows

@HerrDerb
Copy link

HerrDerb commented Jan 15, 2025

@mpeddada1 This issue now does affect the newer builds of quarkus too. Since the framework updated to jib-core v0.27.2[jib-core v0.27.1], a container build using the jib extension of quarkus will run into a deadlock on windows (gradle and maven). See -> quarkusio/quarkus#45496

@heronster Can you add a more telling title (copy) and a short description why it is still not working on windows? This might help that the issue gets more attention.

@heronster heronster changed the title Reopen - #4267 No Progress after "building image to Docker daemon" Jan 15, 2025
@heronster
Copy link
Author

As per the original ticket #4267 , this still does not work on Windows. It gets stuck at 80%, "building image to Docker daemon".
Tried with version 3.4.4 of the Maven plugin

[INFO] --- jib-maven-plugin:3.4.4:dockerBuild (default-cli) @ test-project ---
[WARNING] 'mainClass' configured in 'maven-jar-plugin' is not a valid Java class: ${start-class}
[INFO]
[INFO] Containerizing application to Docker daemon as local/test-project:0.0.1.SNAPSHOT, local/test-project:latest
[WARNING] Base image 'amazoncorretto:17-al2-jdk' does not use a specific image digest - build may not be reproducible
[INFO] The base image requires auth. Trying again for amazoncorretto:17-al2-jdk...
[WARNING] The credential helper (docker-credential-wincred) has nothing for server URL: registry-1.docker.io
[WARNING]
Got output:

credentials not found in native keychain

[WARNING] The credential helper (docker-credential-wincred) has nothing for server URL: registry.hub.docker.com
[WARNING]
Got output:

credentials not found in native keychain

[WARNING] The credential helper (docker-credential-wincred) has nothing for server URL: index.docker.io
[WARNING]
Got output:

credentials not found in native keychain

[WARNING] The credential helper (docker-credential-wincred) has nothing for server URL: docker.io
[WARNING]
Got output:

credentials not found in native keychain

[INFO] Using base image with digest: sha256:f1ac4cb3978b171974b012b48977f146cdad06019de8e82bc39c92c58377f34c
[INFO]
[INFO] Container entrypoint set to [/bin/sh, -c, /etc/test-project/startup.sh]
[INFO]
[INFO] Container entrypoint set to [/bin/sh, -c, /etc/test-project/startup.sh]
[INFO] Executing tasks:
[INFO] [======================== ] 80.0% complete
[INFO] > building image to Docker daemon

As per a comment on the existing issue:
This line blocks until docker info -f "{{json .}}" process exits to start reading the inputStream. On windows, it only exits after inputStream is read, resulting in deadlock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants