containers / containers/podman-py

Question/Information required on some aspects of podman-py module

Open
#184 2 comments 0 reactions 1 assignee Assigned to @mrbazzan View on GitHub
help wanted
Dominant language
Python
Stars
381
Forks
140
Avg merge
5h 30m
Merged PRs (30d)
1

Description

Hello,

I'm using `podman-py` for some container action, and I have a couple of questions;

1) Is it possible to get real-time logging of what is happening during image build(from `PodmanClient().images.build`) in podman-py. I noticed that the option is available for pull(from `PodmanClient().images.pull`) with `stream=True`

2) Does the PodmanClient support some kind of event loop that could be subscribed to, and receive the “stdout/stderr” as events regardless of podman command/method (build/pull) used?

3) There is an issue (I think) with this [line](https://github.com/containers/podman-py/blob/21a48cb81808b7e479630ecb612df32df4ad3550/podman/domain/containers_run.py#L80). The API doesn’t respect the REST endpoint, the REST returns a simple integer instead of JSON/dict.
This prompts a `TypeError, int object is not subscriptable`

![libpod](https://user-images.githubusercontent.com/64538336/176464913-effcb5bb-35de-4fe7-8c9d-3bfedd0bfa91.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.