mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
13 lines
387 B
Go
13 lines
387 B
Go
|
package client
|
||
|
|
||
|
import (
|
||
|
"golang.org/x/net/context"
|
||
|
)
|
||
|
|
||
|
// CheckpointDelete deletes the checkpoint with the given name from the given container
|
||
|
func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, checkpointID string) error {
|
||
|
resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+checkpointID, nil, nil)
|
||
|
ensureReaderClosed(resp)
|
||
|
return err
|
||
|
}
|