Giter Club home page Giter Club logo

Comments (7)

ionut-maxim avatar ionut-maxim commented on June 19, 2024 1

After further investigation, it looks like a CLI wrapper would be the simplest implementation. Although podman creates lightweight VMs on MacOS and Windows and establishes an SSH tunnel to the VM to access the socket, it requires parsing a configuration file and setting up the tunnel for these platforms.

So, yeah, a CLI wrapper it is for now 😄

from tork.

runabol avatar runabol commented on June 19, 2024 1

This is great to know!

from tork.

ionut-maxim avatar ionut-maxim commented on June 19, 2024

@runabol would it be okay if you assign this issue to me?

from tork.

runabol avatar runabol commented on June 19, 2024

Done

from tork.

ionut-maxim avatar ionut-maxim commented on June 19, 2024

Hey @runabol,

While investigating the initial implementation, I encountered an issue. The current Podman package for Go, libpod, has dependencies on many types that Podman uses internally (see: containers/podman#12548).

A possible workaround could involve setting some build flags, as mentioned in that issue. However, I believe a better approach would be to utilize Podman's REST API, which is exposed through a Unix socket or a normal socket, similar to Docker. This would also help avoid adding approximately 40MB of dependencies to the project.

What are your thoughts on this?

from tork.

runabol avatar runabol commented on June 19, 2024

I definitely would agree that adding the library and its attendant dependencies is probably not a great idea.

As for using the REST API through a unix socket, that doesn't sound very cross-platform friendly.

One of my favorite features about podman is its ability to run daemon-less. So if we resort to running it as a service, I feel like we're losing on that advantage. Plus I'm not sure if there's parity between the REST API and the CLI.

What about simply calling the podman cli from Go?

from tork.

jspc avatar jspc commented on June 19, 2024

I found this issue trying to see whether I could use tork via podman on arch and thought it worth adding this note for anyone who comes after me, whose situation is similar to mine.

If you're happy to run podman with a daemon (which on systemd in my distro is accomplished with systemctl start podman.socket) then just setting DOCKER_HOST to the relevant socket is enough.

from tork.

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.