MCPcopy Index your code
hub / github.com/docker/cli / runCreate

Function runCreate

cli/command/checkpoint/create.go:43–55  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, opts createOptions)

Source from the content-addressed store, hash-verified

41}
42
43func runCreate(ctx context.Context, dockerCLI command.Cli, opts createOptions) error {
44 _, err := dockerCLI.Client().CheckpointCreate(ctx, opts.container, client.CheckpointCreateOptions{
45 CheckpointID: opts.checkpoint,
46 CheckpointDir: opts.checkpointDir,
47 Exit: !opts.leaveRunning,
48 })
49 if err != nil {
50 return err
51 }
52
53 _, _ = fmt.Fprintln(dockerCLI.Out(), opts.checkpoint)
54 return nil
55}

Callers 1

newCreateCommandFunction · 0.70

Calls 3

CheckpointCreateMethod · 0.80
ClientMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…