4 "github.com/docker/docker/api/types"
5 "golang.org/x/net/context"
8 // CheckpointCreate creates a checkpoint from the given container with the given name
9 func (cli *Client) CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error {
10 resp, err := cli.post(ctx, "/containers/"+container+"/checkpoints", nil, options, nil)
11 ensureReaderClosed(resp)