volume_remove.go 286 B

1234567891011
  1. package client
  2. import "golang.org/x/net/context"
  3. // VolumeRemove removes a volume from the docker host.
  4. func (cli *Client) VolumeRemove(ctx context.Context, volumeID string) error {
  5. resp, err := cli.delete(ctx, "/volumes/"+volumeID, nil, nil)
  6. ensureReaderClosed(resp)
  7. return err
  8. }