(ctx context.Context, dockerCLI command.Cli, opts createOptions)
| 41 | } |
| 42 | |
| 43 | func 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 | } |
no test coverage detected
searching dependent graphs…