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

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

Open
dazinator opened this issue Oct 4, 2023 · 2 comments

Comments

@dazinator
Copy link

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.

@HofmeisterAn
Copy link
Contributor

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

@dazinator
Copy link
Author

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

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

No branches or pull requests

2 participants