terraform-provider-docker/vendor/github.com/docker/docker/client/service_remove.go
Manuel Vogel 8a4b0b15be
Update to docker to 18.09 (#152)
* updates travis to xenial and docker to 18.09
* updates docker sources to f25e0c6f
* updates the grpc sources to the latest version to be comtatible
Closes #114
2019-05-26 14:20:39 +02:00

10 lines
361 B
Go

package client // import "github.com/docker/docker/client"
import "context"
// ServiceRemove kills and removes a service.
func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error {
resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil)
defer ensureReaderClosed(resp)
return wrapResponseError(err, resp, "service", serviceID)
}