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

Quarkus image build with Podman doesn't push resulting image into local registry #44012

Open
xstefank opened this issue Oct 22, 2024 · 2 comments · May be fixed by #44015
Open

Quarkus image build with Podman doesn't push resulting image into local registry #44012

xstefank opened this issue Oct 22, 2024 · 2 comments · May be fixed by #44015
Labels
env/podman kind/bug Something isn't working

Comments

@xstefank
Copy link
Member

Describe the bug

quarkus image build or ./mvnw clean package -Dquarkus.container-image.build=true with Podman builds the image but the log prints this warning:

[INFO] [io.quarkus.deployment.util.ExecUtil] WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load

And the image is not pushed to local registry.

This works with Docker. The problem is in Podman.

Expected behavior

Build image is available in local registry.

Actual behavior

Podman build result is lost in the void.

How to Reproduce?

Just add docker or podman extensions - https://github.com/xstefank/quarkus-reproducers/tree/main/podman-quarkus

Run quarkus image build with Podman.

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

Workaround is to set the following flag:

quarkus image build -Dquarkus.docker.buildx.platform=local

Or set it to the target platform. I think that we can simple fix this to default config to "local" for this property.

@xstefank xstefank added the kind/bug Something isn't working label Oct 22, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 22, 2024

/cc @maxandersen (podman)

@xstefank
Copy link
Member Author

@iocanel this is what we talked about, any objections to making quarkus.docker.buildx.platform default to local? I'll open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env/podman kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant