podman-py
podman-py copied to clipboard
Python bindings for Podman's RESTful API
During my tests I noted that podman py `containers.list()` function returns a list of containers with partial/missing `Mounts` attribute values. In particular, the `Mounts` attribute values are correctly returned when...
Hi, I'm trying to convert following snippet of my code that is using `docker-py` to for `exec_run` to stream the result: #### docker: - code: ```python exit_code, response = ubuntu_container.exec_run(cmd='apt-get...
The container object is currently pulling ports from `Container.NetworkSettings.Ports`: https://github.com/containers/podman-py/blob/8a4cbf3c8aaf90bfc36b5611288b9de9becca469/podman/domain/containers.py#L58-L63 This works when you are inspecting an individual container like: ```python container = podman_client.containers.get(some_container_id) print(container.ports) ``` but fails when you...
Currently the stream output during pull operation seems to appear like a single element `stream` in JSON format, for example: ``` {'stream': 'Trying to pull docker.io/athenaos/base:latest...\n'} {'stream': 'Getting image source...
Hi, It seems like userns mode is not honoured by either podman-py or the podman API. Running podman 4.9.3 on an up-to-date Ubuntu 24.04.1 LTS virtual machine. ``` $ cat...
When creating a container using the library I am not allowed to pass the `seccomp=unconfined` security option. We receive the following error: `creating container storage: Bad label option "seccomp=unconfined", valid...
This is a proof-of-concept commit to gather initial feedback. This addresses the issue in #493, i.e., that passing `userns='auto'` to Container.create() results in the option being silently ignored. Before this...
I want to get podman info without specifying a base uri, by using `podman.from_env()` (as occurs for python docker lib). When I run `sudo systemctl start podman` and I run...
Is it possible to implement in podman-py the equivalent of [from docker.types import Mount](https://github.com/docker/docker-py/blob/a8bac8822127a8f446893a4e7e60d4b5149333bf/docker/types/services.py#L221)?