MCPcopy Create free account
hub / github.com/containerd/nerdctl / commitAction

Function commitAction

cmd/nerdctl/container/container_commit.go:154–166  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

152}
153
154func commitAction(cmd *cobra.Command, args []string) error {
155 options, err := commitOptions(cmd)
156 if err != nil {
157 return err
158 }
159 client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address)
160 if err != nil {
161 return err
162 }
163 defer cancel()
164
165 return container.Commit(ctx, client, args[1], args[0], options)
166}
167
168func commitShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
169 if len(args) == 0 {

Callers

nothing calls this directly

Calls 3

NewClientFunction · 0.92
CommitFunction · 0.92
commitOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…