You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that both Fedora and RHEL/CentOS 8 no longer have Docker packages in their native repos I think that podman support is very much needed.
Reacted by Thomas Ruf, Vedran Lebo, Mike Reeves, Josh Brower, Vince, Karl Q., Nik Mohamad Aizuddin, NathanBeirens, Konstantin Belyalov, Louis Pilfold and 5 more
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
python-podman implementation is not fully compatible with libpod varlink defined interface
The bottom line we are moving away from varlink to a similar Protocol to the Docker.API
Thanks for the heads up, I will take a look to the APIv2 to avoid to spend time on something who will be deprecated in the next releases.
But we heard from users that varlink was a hurdle for libpod adoption especially for those who were using the Docker API and its bindings. They simply could not or did not want to rewrite their custom applications for libpod’s new, varlink-based API.
The new API is a simpler implementation based on HTTP/REST. We provide two basic groups of endpoints. The first one is for libpod; the second is for Docker compatibility, to ease adoption. The two endpoints are namespaced to keep them separate. Our goal with implementing a portion of the Docker API, is to be as compatible as possible; while similar calls in the libpod API might bring back additional libpod specific information.
In our proof of concepts, we have tested our endpoint with the docker-py project. There are of course subtle differences which we are still working on. And there are compatibility endpoints that we can not support like swarm which Podman does not support.
As for the existing varlink code, it has been in maintenance mode already. We will continue to address bugs but no new functionality will be developed. Once the new API is fully implemented, we plan to make a deprecation announcement.
This potentially means that some of the existing Salt docker modules might be somewhat compatible with the upcoming Podman APIv2 endpoint.
However, I'm not really familiar with Podman and not sure if APIv2 could provide a viable shortcut for Salt to support Podman containers eventually.
@aboe76@paususe I think I got a single podman container running with some issues, I hope I can find some time this August to document and upload my WIP code here
I had to fiddle a bit with the environment (podman adds environment variables to running containers) to get docker_container.running to behave, but anything else I tried with podman 4.2 worked nicely.
(after adding the symlink and the python modules from #50624 (comment))
The primary issue that needs to be fixed is non-idempotent docker_container.running state. You'll get a new container id each time you apply the state. There are three possible projects that can affect this:
Podman and its components. Most likely its API is not 100% compatible, esp. if it is related to networking
Docker Python library
Salt Docker modules and states (they aren't getting enough attention from VMware), and how they interact with docker module
P.S. Sorry for making you wait for so long. I procrastinated on publishing this WIP for a while :)
Is there any update on this issue ? I tried to use podman and it mostly works, but docker_container.running generating a new container on each run is not helping.
It seems to assume there's a new imagem even though the image is exactly the same.
Activity
Ch3LL commentedon Nov 26, 2018
will approve as a feature request
deuscapturus commentedon Nov 26, 2018
I just starting looking into creating some podman modules.
I think this is a good starting point: https://github.com/containers/libpod/tree/master/contrib/python/podman
fignew commentedon Nov 1, 2019
Now that both Fedora and RHEL/CentOS 8 no longer have Docker packages in their native repos I think that podman support is very much needed.
aboe76 commentedon Nov 19, 2019
The podman python has it's own module:
https://github.com/containers/python-podman
defensivedepth commentedon Nov 21, 2019
I agree with @fignew, this becomes a more pressing issue with the lack of Docker packages with Fedora and RHEL/CentOS 8.
stale commentedon Jan 7, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
aboe76 commentedon Jan 7, 2020
Please keep this open, podman support would be beneficial to saltstack.
stale commentedon Jan 7, 2020
Thank you for updating this issue. It is no longer marked as stale.
ankitola commentedon Jan 23, 2020
Yes, It will be great if SaltStack provide Podman support. Please keep open this.
max-arnold commentedon Jan 25, 2020
I did some initial research and found this:
containers/python-podman#70 (comment)
https://podman.io/blogs/2020/01/17/podman-new-api.html
A couple of important highlights:
This potentially means that some of the existing Salt docker modules might be somewhat compatible with the upcoming Podman APIv2 endpoint.
However, I'm not really familiar with Podman and not sure if APIv2 could provide a viable shortcut for Salt to support Podman containers eventually.
7 remaining items
aboe76 commentedon Feb 5, 2021
@max-arnold that's sounds great!!!
paususe commentedon May 3, 2021
Hey @max-arnold, what's the status?
max-arnold commentedon Jul 27, 2022
@aboe76 @paususe I think I got a single podman container running with some issues, I hope I can find some time this August to document and upload my WIP code here
aboe76 commentedon Aug 1, 2022
@max-arnold nice work, thanks for the status update.
mostlymaxi commentedon Nov 3, 2022
@max-arnold any updates? Been looking for this as well and interested in contributing.
hcdeeken commentedon Nov 3, 2022
I had to fiddle a bit with the environment (podman adds environment variables to running containers) to get docker_container.running to behave, but anything else I tried with podman 4.2 worked nicely.
(after adding the symlink and the python modules from #50624 (comment))
max-arnold commentedon Nov 3, 2022
Here you go! The states were written in Feb 2021 and are outdated, but if anyone wants to continue the work, feel free to create a repo:
podman.zip
These are not meant to be used in production, because Podman and its components are compiled from source (to be able to test the latest fixes).
Kudos to @defensivedepth for making this happen!
max-arnold commentedon Nov 3, 2022
Spent some time updating the states with the latest and greatest versions:
For some reason the
requestspatch doesn't emit any output with salt-call, so another way to debug Docker API requests needs to be implemented.podman-2022-11-03.zip
The primary issue that needs to be fixed is non-idempotent
docker_container.runningstate. You'll get a new container id each time you apply the state. There are three possible projects that can affect this:P.S. Sorry for making you wait for so long. I procrastinated on publishing this WIP for a while :)
andrelop commentedon Feb 7, 2023
Is there any update on this issue ? I tried to use podman and it mostly works, but
docker_container.runninggenerating a new container on each run is not helping.It seems to assume there's a new imagem even though the image is exactly the same.
DaAwesomeP commentedon May 13, 2023
Hey @max-arnold any updates? It seems that we are close but just barely not quite there yet!
max-arnold commentedon May 13, 2023
@DaAwesomeP Unfortunately, I no longer work on this. Feel free to pick it up and continue the work.