Giter Club home page Giter Club logo

Comments (16)

thecatwasnot avatar thecatwasnot commented on April 28, 2024 16

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

from lazydocker.

eean avatar eean commented on April 28, 2024 9

Yeah that works great. I did:
export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
./lazydocker

For this issue, I think a --podman option to set the defaults sensibly would make sense.

from lazydocker.

dawidd6 avatar dawidd6 commented on April 28, 2024 7

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:
https://github.com/containers/libpod/blob/master/API.md

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.

from lazydocker.

bcm0 avatar bcm0 commented on April 28, 2024 5

With podman installed I can run sudo lazydocker and it works fine.
How can I get rid of sudo?

What I tried:

Other tools from https://awesome-docker.netlify.app/#cli-tools have the exact same problem.

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024 4

I'm not familiar with podman. Is that an alternative to docker for containerization?

from lazydocker.

yohosuff avatar yohosuff commented on April 28, 2024 4

Add this to your ~/.bashrc for the ultra lazy among us.

alias lazypodman='DOCKER_HOST=unix:///run/user/1000/podman/podman.sock lazydocker'

from lazydocker.

maliayas avatar maliayas commented on April 28, 2024 1

FWIW You can enable Podman's socket (which is normally not needed for regular Podman usage) via: systemctl enable --now podman.socket

And then:

# docker run --rm -it -v /run/podman/podman.sock:/var/run/docker.sock lazyteam/lazydocker

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024

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

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024

Good to have you back @dawidd6! If you need any pointers let me know :)

from lazydocker.

 avatar commented on April 28, 2024

Podman is pretty much mature at this point, any chance of this happening?

from lazydocker.

dawidd6 avatar dawidd6 commented on April 28, 2024

Would you like to help?

from lazydocker.

 avatar commented on April 28, 2024

I can test stuff for you, but sadly that's about it. (:

from lazydocker.

heylix avatar heylix commented on April 28, 2024

podman has a podman-docker abstraction library and podman-compose is a thing.

With lots of luck just installing these and alias docker-compose=podman-compose would work.

Maybe someone more brave than me can try this.

from lazydocker.

DrSensor avatar DrSensor commented on April 28, 2024

It's not as simple as aliasing the docker cli.
I think symlinking the socket descriptor will be needed 🤔
containers/podman#4234

I wonder if lazydocker can be configured

from lazydocker.

ildar avatar ildar commented on April 28, 2024

from lazydocker.

witten avatar witten commented on April 28, 2024

FWIW, I can confirm that the DOCKER_HOST approach works with Podman (rootless here), but the logs tab in lazydocker never updates and is even is empty for certain containers. Similar symptoms to #306 and #218.

from lazydocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.