Skip to content
This repository has been archived by the owner on Apr 28, 2018. It is now read-only.

get-container simplified query for Running or Stopped containers #182

Open
erichexter opened this issue Apr 19, 2017 · 1 comment
Open

Comments

@erichexter
Copy link

It would be useful if there was a -Running flag parameter to do operations like feed the running containers to the stop-container command. Without having to pipe the output to a where-object state -eq running.

something like this would be nice.

Get-Container -Running | Stop-Container
Get-Container -Stopped | Remove-Container

@dchristian3188
Copy link

What about a single parameter -State with a parameter set for the different values.

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

No branches or pull requests

2 participants