Docker-py: Question : docker service ps <service id>

Created on 14 Sep 2017  路  2Comments  路  Source: docker/docker-py

Is there a way to do a docker service ps using docker py? I can do client.api.inspect_service('id') but this does not show node or the task information.

Sorry if this question does not belong here.

Thank you!

kinquestion

Most helpful comment

@shin- Thank you! Just a small correction, it is "filters" instead of "filter" took a while to get that figured out!

All 2 comments

client.tasks(filters={'service': service_id})

(edited with correction suggested below)

@shin- Thank you! Just a small correction, it is "filters" instead of "filter" took a while to get that figured out!

Was this page helpful?
0 / 5 - 0 ratings