You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
355 B
Go
11 lines
355 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)
|
|
ensureReaderClosed(resp)
|
|
return wrapResponseError(err, resp, "service", serviceID)
|
|
}
|