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

Function runCommit

cli/command/container/commit.go:72–86  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli, options *commitOptions)

Source from the content-addressed store, hash-verified

70}
71
72func 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}

Callers 1

newCommitCommandFunction · 0.85

Calls 4

ContainerCommitMethod · 0.80
GetSliceMethod · 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…