(ctx context.Context, dockerCli command.Cli, options *commitOptions)
| 70 | } |
| 71 | |
| 72 | func runCommit(ctx context.Context, dockerCli command.Cli, options *commitOptions) error { |
| 73 | response, err := dockerCli.Client().ContainerCommit(ctx, options.container, client.ContainerCommitOptions{ |
| 74 | Reference: options.reference, |
| 75 | Comment: options.comment, |
| 76 | Author: options.author, |
| 77 | Changes: options.changes.GetSlice(), |
| 78 | NoPause: options.noPause, |
| 79 | }) |
| 80 | if err != nil { |
| 81 | return err |
| 82 | } |
| 83 | |
| 84 | _, _ = fmt.Fprintln(dockerCli.Out(), response.ID) |
| 85 | return nil |
| 86 | } |
no test coverage detected
searching dependent graphs…