-
Notifications
You must be signed in to change notification settings - Fork 643
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
Podman not supported #1330
Comments
True, but that's not a bug. Just a missing feature. |
Agreed, but will it get added? |
There a no plans yet. |
What is needed from Podman to make this work? |
I'm not sure whether it's in DMP's roadmap to add Podman support in the future. But we do have plans to support Podman[0] in Eclipse JKube(next generation of FMP/ [0] eclipse-jkube/jkube#66 |
Unfortunately this doesn't help me (or at least I can't see how it would
help me), as DMP is the thing used by the Quarkus framework for Docker
calls, and using Docker is not always optional there and enabled by default
for some of the examples.
|
@rhatdan docker-maven-plugin has two major parts:
Said all that, I'm totally open and supportive for PRs would want to tackle and would help to integrate them. But I won't be able to dedicate a considerable amount working effort in dmp. |
It's not even necessary to switch between |
That's the point, this plugin does not user the |
Podman 2.0 which is in release candidate stage now supports the REST API of the docker daemon. |
FWIW the plugin now seems to work (at least partially) with podman >=2.0. To make it work as a non-root user do: podman service -t 3600 & # This will start podman's REST API and keep it alive for 1 hour (3600 seconds)
export DOCKER_HOST="export DOCKER_HOST="unix:/run/user/$(id -u)/podman/podman.sock"
mvn ... |
As an idea, we could add support for starting (and stopping) the Podman service transparently, similar like the support we have for docker-machine (see the docs). |
Encountered same error here while trying out the In case it helps, I ran into it while experimenting with replacing docker with podman in syndesis: |
Same error for me. |
Looks like a mismatch in the content-type when uploading the build context to the daemon. Should be easy to fix (assuming that Docker also works with |
I ended up putting nginx between d-m-p and podman to change some of the settings. I was able to successfully build an image and save it to a tar file. I was unable to run it using d-m-p. Below is the Nginx config file I used. The first issue is the content type you already noted. Docker seems to ignore the content type. The second is that podman only seems to include the version header in calls to
|
I see, thanks for the investigation. Let's tackle Podman support for the next release. At least those two issues should be easy to fix. |
Many thanks for this, it's extremely useful! Updating instructions though, N.B. both preparations commands have to be adjusted slightly now:
(At least, that's what I need to do on Fedora 33 - running as non-root as well. I have both Additionally, some widely used images attempt to perform operations which are typically not allowed under the more restrictive (good) defaults for podman; in many cases it's enough to update the containers, as many have fixed their images. for example, |
Excellent. |
Updating here since people seem to have bookmarked this place: Podman evolved a bit, the better command is now:
|
Hi, up to now it worked well for me to use the plugin with Podman using
The reason seems to be that the plugin uses 5-byte hex shortcuts while the podman-docker-service requires the full 64-byte hex value. I am using podman in version |
Please open an issue against podman. |
Done: #1625 |
@michaelmejaeger : I think Daniel meant creating an issue in this repository https://github.com/containers/podman |
Ah, sorry, I got that wrong. I will correct that! |
I would suggest closing this - we've been using podman for a while with this maven plugin and it "just works". There's of course some differences, but that would be out of scope for this issue. |
Description
Info
mvn -v
) :sudo dnf install podman-docker
and try to use this Maven pluginThe text was updated successfully, but these errors were encountered: