Hi Niranjan,

Thanks for reaching out.

On Mon, Nov 22, 2021 at 8:11 AM <niranjan@ashoo.in> wrote:
Hi all

I am looking for some code examples in Golang to use Podman REST API. Is there a repository or some code examples that i can refer to?

Also while looking at the Podman REST API. (https://docs.podman.io/en/latest/_static/api.html). how do i call the "podman run" using the REST API ?

A container run boils down to create+start.  Some examples can be found in how the remote client of Podman is using the Go-bindings for the REST API, for example: https://github.com/containers/podman/blob/main/pkg/domain/infra/tunnel/containers.go#L711

The bindings live in pkg/bindings/{containers,images,...}.

Kind regards,
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io