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

missing filter docker service ps --filter state=running <service> #39022

Open
SvenDowideit opened this issue Apr 8, 2019 · 2 comments
Open
Labels
area/swarm kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@SvenDowideit
Copy link
Contributor

ala https://docs.docker.com/engine/reference/commandline/ps/#filtering

@thaJeztah thaJeztah added the kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. label Apr 8, 2019
@adshmh
Copy link
Contributor

adshmh commented Apr 26, 2019

Is this a request for filtering based on the current state of the task? (and not the 'desired state')?

There exists a 'desired-state' key to filter by, but there is no key for the current state:

$ docker service ps service1 --filter desired-state=running
ID                  NAME                IMAGE               NODE                DESIRED STATE       CURRENT STATE                     ERROR               PORTS
gdjozi2mhzog        musing_payne.1      alpine:latest       host-1         Running             Starting less than a second ago                       

@SvenDowideit
Copy link
Contributor Author

exactly - the desired state is pretty obvious - scripts are much more likley to need to determine what the running state is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/swarm kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

No branches or pull requests

4 participants