We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
You don't need to fetch and loop through all services in the Swarm @
orbiter/autoscaler/autoscaler.go
Line 56 in e875318
Instead you can add a filter, and fetch the required service directly. E.g.:
serviceFilter := filters.NewArgs() serviceFilter.Add("id", serviceId) services, err := dockerClient.ServiceList(ctx, types.ServiceListOptions{Filters: serviceFilter})
Also see: https://docs.docker.com/engine/reference/commandline/service_ls/#filtering
The text was updated successfully, but these errors were encountered:
This is a good catch @bjwschaap thanks!
Sorry, something went wrong.
No branches or pull requests
You don't need to fetch and loop through all services in the Swarm @
orbiter/autoscaler/autoscaler.go
Line 56 in e875318
Instead you can add a filter, and fetch the required service directly. E.g.:
Also see: https://docs.docker.com/engine/reference/commandline/service_ls/#filtering
The text was updated successfully, but these errors were encountered: