-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Ability to detect podman when creating container output #16326
Comments
Can you explain which part of the build requires docker? Some logs for the second case would be helpful |
It seems that if I want to create a container output as documented in https://quarkus.io/guides/building-native-image#creating-a-container. There it mentions a dependency on container-image extensions (https://quarkus.io/guides/container-image). There are three as I understand it. But for usecases outside of OpenShift just jib and docker. Unfortunately jib also requires docker in some cases as indicated by: With the following command even though I am running podman locally and have explicitly indicated that I want to use podman, it will not try to put the image in the local podman repo. It wants to go to docker.io instead. ./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true -Dquarkus.native.container-runtime=podman -Dquarkus.container-image.push=true The output of the run is below: [INFO] Scanning for projects... |
I updated my previous comment as I had forgotten to enable the jib extension on my first run output. |
The fact that it will automatically register with the local docker registry if a remote registry is not provided but not do the same for podman is the issue I am trying to describe really. |
OK, thanks for the information. As implied by the names of the different properties, ( |
I agree that they are different. My concern was the overall consistency of user experience. Maybe that is something we can consider down the road some time. |
+1 being able to define the container engine globally (or even better detect it automatically) would be nice. I have only tried podman with |
There is also the |
Best open a new issue for this. |
I am going to close this because #24238 will introduce the same detection method we have for the native binary using container build into our Jib support |
I have noticed that:
./mvnw package -Pnative -Dquarkus.native.container-build=true
will detect either docker or podman and use accordingly. However:
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
requires the presence of docker unless I explicitly specify '
-Dquarkus.native.container-runtime=podman
'. This feels like inconsistent behavior. Can we see about detecting podman for the container image build as we do for the native build?The text was updated successfully, but these errors were encountered: