Docker.DotNet icon indicating copy to clipboard operation
Docker.DotNet copied to clipboard

[Question] equivalent api for docker service ps --no-trunc [swarm service name]

Open dazinator opened this issue 2 years ago • 2 comments

I am wondering if there is an api to get the equivalent to docker service ps --no-trunc servicename

I have tried to explore the api surface but can't see an obvious match.

dazinator avatar Oct 04 '23 15:10 dazinator

Doesn't ListServicesAsync(ServicesListParameters, CancellationToken) respectively InspectServiceAsync(string, CancellationToken) return the service information?

HofmeisterAn avatar Oct 05 '23 06:10 HofmeisterAn

No from what I can see, docker service ps --no-trunc servicename returns different error information for example, when a service's tasks cannot be scheduled (are rejected) due to an error with an invalid bind mount specification the "error" given from docker service ps --no-trunc servicename is more helpful

dazinator avatar Oct 09 '23 10:10 dazinator