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

RFE: Allow filtering containers by command #24664

Open
krystalcode opened this issue Nov 24, 2024 · 5 comments
Open

RFE: Allow filtering containers by command #24664

krystalcode opened this issue Nov 24, 2024 · 5 comments
Assignees
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@krystalcode
Copy link

krystalcode commented Nov 24, 2024

Feature request description

I want to bulk remove any intermediate containers left by Buildah. I understand that these are listed by podman ps --external and they are the ones that have "buildah" as the Command. Currently, podman ps --filter command=buildah raises an invalid filter error.

Suggest potential solution

Add a command filter so that I can run podman ps --external --filter command=buildah --format "{{.ID}}" | xargs podman rm.

Have you considered any alternatives?

No response

Additional context

No response

@krystalcode krystalcode added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 24, 2024
@giuseppe giuseppe changed the title Allow filtering containers by command RFE: Allow filtering containers by command Nov 27, 2024
@giuseppe giuseppe added the Good First Issue This issue would be a good issue for a first time contributor to undertake. label Nov 27, 2024
@giuseppe
Copy link
Member

thanks for opening the issue, it seems like a good candidate for "Good First Issue".

The main difficulty in the implementation is to apply the filters to the external containers, which we don't currently do.

@arsenalzp
Copy link

Hello,
Can I work on this issue, please

@giuseppe
Copy link
Member

giuseppe commented Dec 2, 2024

definitely! It is all yours

@arsenalzp
Copy link

/assign

@arsenalzp
Copy link

arsenalzp commented Dec 5, 2024

Hello @giuseppe,

I decided to implement filtering of commands to all kind of containers storage: external and for podman, I guess, this approach is better than just implementing this feature for only one sort of storage.
If you don't want to accept this approach then I will put it away and implement filtering for external container storage only.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants