Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the ability to run containers #226

Merged
merged 7 commits into from
Jan 17, 2023
Merged

Conversation

jonathanunderwood
Copy link
Contributor

@jonathanunderwood jonathanunderwood commented Jan 14, 2023

This set of changes fixes the broken .run() capability, and adds some docstrings and clarifications along the way.

This fixes #201 and item 3 in #184.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 14, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jonathanunderwood
Once this PR has been reviewed and has the lgtm label, please assign rhatdan for approval by writing /assign @rhatdan in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

The Podman REST wait endpoint returns a JSON encoded integer, whereas
the Container.wait() function was expecting a JSON
object with "Error" and "Status Code" keys (which actually corresponds
to the response from the "Podman compat" legacy API). So, we fix that
in the Container.wait() method, and in the consuming Container.run()
method.

See:
    https://docs.podman.io/en/latest/_static/api.html#tag/containers/operation/ContainerWaitLibpod
Signed-off-by: Jonathan G. Underwood <[email protected]>
This is a cosmetic clarification.

Signed-off-by: Jonathan G. Underwood <[email protected]>
Signed-off-by: Jonathan G. Underwood <[email protected]>
Signed-off-by: Jonathan G. Underwood <[email protected]>
@jwhonce
Copy link
Member

jwhonce commented Jan 16, 2023

LGTM

1 similar comment
@rhatdan
Copy link
Member

rhatdan commented Jan 17, 2023

LGTM

@rhatdan rhatdan merged commit 2f8b45a into containers:main Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman run not working
3 participants