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
DOCKER_HOST-strategy in class isDockerWorking.java excludes expected "unix:"-path where it should include "unix:" - broken. #29426
Comments
@geoand If the logic is correct then the documentation is wrong - It says to set this as
https://quarkus.io/guides/podman#setting-docker_host-on-linux which makes perfectly sense. I would in practice still argue that it is the |
I'll let @Sanne comment as I have never used podman |
Thanks, note though that one does not have to run Podman though to see that the documentation line refered and the condition logic contradicts each other. |
I agree, I just don't know which one is wrong :) |
Sorry I don't remember why we did this. I can check/validate any changes with podman though, if that helps. |
That would be great, thanks |
Thanks @Sanne . Heads up, Another note is that the current documentation example mentioned above for setting DOCKER_HOST is also pointing to a podman socket path that might differ on different setups of linuxes. To see which is the correct path for your podman instance see
and you should get roughly like back which shows the correct podman socket path - ie set DOCKER_HOST=unix://THE_ABOVE_PATH. (Also exists should be true.) |
I created #29562 to take care of this. |
Fixes quarkusio#29426 (cherry picked from commit faf5fcd)
Fixes quarkusio#29426 (cherry picked from commit faf5fcd)
Fixes quarkusio#29426 (cherry picked from commit faf5fcd)
Describe the bug
In the file
IsDockerWorking.java.
line 129 -see https://github.com/quarkusio/quarkus/blob/main/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java#L129
the check for the DOCKER_HOST-variable is negatated. However, setting the DOCKER_HOST variable to a unix socket usually involves a path like "unix:\\the\path\to\socket". This is also clearly mentioned and recommened in your documentation -> https://quarkus.io/guides/podman#setting-docker_host-on-linux. The negation should most likely be removed so that the logic it now hides can run correctly (connection to the "unix:" socket in the DOCKER_HOST-env.
Expected behavior
It should find a DOCKER_HOST-path (according to practices, according to your documentation linked in descrioption starting with unix:\\the-path-to-the-socket.
Actual behavior
It instead excludes DOCKER_HOST paths starting with "unix:" due to starting with neg !.
How to Reproduce?
Set a DOCKER_HOST starting with "unix:\" for example as per docu, qurkus will fail finding it and connecting to it . https://quarkus.io/guides/podman#setting-docker_host-on-linux
Output of
uname -a
orver
No response
Output of
java -version
17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: