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

Function UpdateCommand

cmd/nerdctl/container/container_update.go:60–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func UpdateCommand() *cobra.Command {
61 var cmd = &cobra.Command{
62 Use: "update [flags] CONTAINER [CONTAINER, ...]",
63 Args: cobra.MinimumNArgs(1),
64 Short: "Update one or more running containers",
65 RunE: updateAction,
66 ValidArgsFunction: updateShellComplete,
67 SilenceUsage: true,
68 SilenceErrors: true,
69 }
70 cmd.Flags().SetInterspersed(false)
71 setUpdateFlags(cmd)
72 return cmd
73}
74
75func setUpdateFlags(cmd *cobra.Command) {
76 cmd.Flags().Float64("cpus", 0.0, "Number of CPUs")

Callers 2

newAppFunction · 0.92
CommandFunction · 0.85

Calls 1

setUpdateFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…