robertpsoane / ducker

A slightly quackers Docker TUI based on k9s 🦆
https://crates.io/crates/ducker
MIT License
242 stars 10 forks source link

support podman #9

Open pythops opened 2 months ago

pythops commented 2 months ago

Would be great to add support for podman as well

robertpsoane commented 2 months ago

Definitely makes sense to add, but I'm not sure podman is daemonised in the same way docker is?

I know at the cli api level they're roughly API compatible, but I'm not sure if Bollard is inherently podman compatible

I'll definitely look into it once I've got a few more features on the docker side

pythops commented 2 months ago

podman is indeed a daemonless which makes sense if you think about it, why do you need a daemon to run containers ? and it has an API that is accessible via unix socket https://docs.podman.io/en/latest/_static/api.html

blurayne commented 1 month ago

+1

Usually a podman installation comes with a socket service (either rootless or root) that was designed to replace dockerd socket. For 99% of all containers / docker-compose stuff you don't have any problems with it. I even added a docker context for it (running docker root/docker rootless/podman on my system). Preference goes to Podman but some devs still rely on docker root :(

https://docs.podman.io/en/v4.1.1/markdown/podman-system-service.1.html

Now you just need to add a pods view. And secrets.

robertpsoane commented 1 month ago

I will have a re-read of the docs My mis-understanding from a brief read about the podman socket service was that there were security implications of it Thanks for the corrections!