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

Function Command

cmd/nerdctl/container/container.go:25–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23)
24
25func Command() *cobra.Command {
26 cmd := &cobra.Command{
27 Annotations: map[string]string{helpers.Category: helpers.Management},
28 Use: "container",
29 Short: "Manage containers",
30 RunE: helpers.UnknownSubcommandAction,
31 SilenceUsage: true,
32 SilenceErrors: true,
33 }
34 cmd.AddCommand(
35 CreateCommand(),
36 RunCommand(),
37 UpdateCommand(),
38 ExecCommand(),
39 listCommand(),
40 inspectCommand(),
41 LogsCommand(),
42 PortCommand(),
43 RemoveCommand(),
44 StopCommand(),
45 StartCommand(),
46 RestartCommand(),
47 KillCommand(),
48 PauseCommand(),
49 DiffCommand(),
50 WaitCommand(),
51 UnpauseCommand(),
52 CommitCommand(),
53 RenameCommand(),
54 pruneCommand(),
55 StatsCommand(),
56 AttachCommand(),
57 HealthCheckCommand(),
58 ExportCommand(),
59 )
60 AddCpCommand(cmd)
61 return cmd
62}
63
64func listCommand() *cobra.Command {
65 x := PsCommand()

Callers 1

newAppFunction · 0.92

Calls 15

CreateCommandFunction · 0.85
RunCommandFunction · 0.85
UpdateCommandFunction · 0.85
ExecCommandFunction · 0.85
LogsCommandFunction · 0.85
PortCommandFunction · 0.85
RemoveCommandFunction · 0.85
StopCommandFunction · 0.85
StartCommandFunction · 0.85
RestartCommandFunction · 0.85
KillCommandFunction · 0.85
PauseCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…