-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add podman support? #4
Comments
I'm not familiar with podman. Is that an alternative to docker for containerization? |
After heaving read into it a bit more, podman would be slightly tricky to support, because there are loads of places where I'm talking to the docker client directly rather than using CLI commands. It's not too hard to swap over most of them, but e.g. the stats object I get back from the client to generate the graphs is very detailed and I don't believe you can get that same object from the command line |
The fact that lazydocker talks directly to Docker Engine is great and I think there is a possiblity to easily implement talking to Docker or Podman, by creating an interface that would be implemented by 2 structs representing Docker client and Podman's one. I have to first get familiar with lazydocker's codebase though. Podman's Go API is documented here: Dunno more details about that, like which package to import and how to start, but I guess it can be done. Also, I just learned about this project from HN. @jesseduffield I'm very glad that you started it (just like lazygit) and I think that I'll try to contribute some code and help as much as I can, cause I see a value in this project. |
Good to have you back @dawidd6! If you need any pointers let me know :) |
Podman is pretty much mature at this point, any chance of this happening? |
Would you like to help? |
I can test stuff for you, but sadly that's about it. (: |
podman has a podman-docker abstraction library and podman-compose is a thing. With lots of luck just installing these and Maybe someone more brave than me can try this. |
It's not as simple as aliasing the docker cli. I wonder if lazydocker can be configured |
Podman v2.0 now has a RESTful API which I believe is mostly docker compliant, not sure how lazydocker works exactly but it may help. Reference docs: http://docs.podman.io/en/latest/Reference.html |
With podman installed I can run What I tried:
Other tools from https://awesome-docker.netlify.app/#cli-tools have the exact same problem. |
FWIW You can enable Podman's socket (which is normally not needed for regular Podman usage) via: And then:
|
Yeah that works great. I did: For this issue, I think a --podman option to set the defaults sensibly would make sense. |
you guys are great, thanks a lot!!!
|
Add this to your
|
+1 |
I guess this works only with podman installed with a "pretend to be docker" shim. In my case where I do have a proper And given that |
Any news or progress on this? I would love to use lazydocker with podman! |
On MacOS, here's how to set the
After setting |
Is this still being worked on? I can help write the code for native podman support. Is there a specific branch the code worked on is on, or am I starting fresh? Setting the docker host is a great idea but I use both docker and podman so I would be adding full support and the ability to switch between the two. |
Got it to work! Here are the steps I followed. I'm on Arch Linux and using the Fish shell. First enable
Then add this to your
That's it. Now, just run |
I'm happy to report that this also works on Ubuntu-esque distros, and presumably Debian too. As above: First enable
Then add this to your ~/.config/bash.rc
That's it. Now, just run lazydocker |
Works on Fedora 41 as well. |
Confirming Debian 12. Thanks. |
The TUI looks great, but alas. podman seems to be the new new thing now so hopefully it's easy to add support? -- https://github.com/containers/libpod
The text was updated successfully, but these errors were encountered: