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

[feature] pouch ps supports more filters #2937

Closed
lang710 opened this issue Jul 2, 2019 · 0 comments
Closed

[feature] pouch ps supports more filters #2937

lang710 opened this issue Jul 2, 2019 · 0 comments

Comments

@lang710
Copy link
Contributor

lang710 commented Jul 2, 2019

Why you need it?

For ps command, I find the currently supported filters are: id, label, name, status. There are some filters, such as exited, network we also need to support.

How it could be?

The exited filter matches containers by exist status code. For example, to filter fo containers that have exited successfully:
$ pouch ps -a --filter 'exited=0'

The network filter shows only containers that are connected to a network with a given name or id.
The following filter matches all containers that are connected to a network with a name containing net1.
$ pouch ps --filter network=net1
The following example use the network id as a filter:
$ pouch ps --filter network=8c0b4110

Other related information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants