github.com/rumpl/bof@v23.0.0-rc.2+incompatible/client/checkpoint_create.go (about)

     1  package client // import "github.com/docker/docker/client"
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/docker/docker/api/types"
     7  )
     8  
     9  // CheckpointCreate creates a checkpoint from the given container with the given name
    10  func (cli *Client) CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error {
    11  	resp, err := cli.post(ctx, "/containers/"+container+"/checkpoints", nil, options, nil)
    12  	ensureReaderClosed(resp)
    13  	return err
    14  }