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

Method Cmd

pkg/testutil/testutil.go:71–80  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

69}
70
71func (b *Base) Cmd(args ...string) *Cmd {
72 icmdCmd := icmd.Command(b.Binary, append(b.Args, args...)...)
73 icmdCmd.Env = b.Env
74 icmdCmd.Dir = b.Dir
75 cmd := &Cmd{
76 Cmd: icmdCmd,
77 Base: b,
78 }
79 return cmd
80}
81
82// ComposeCmd executes `nerdctl -n nerdctl-test compose` or `docker-compose`
83func (b *Base) ComposeCmd(args ...string) *Cmd {

Callers 15

EnsureDaemonActiveMethod · 0.95
InspectContainerMethod · 0.95
InspectImageMethod · 0.95
InspectNetworkMethod · 0.95
InspectVolumeMethod · 0.95
InfoMethod · 0.95
InfoNativeMethod · 0.95
preparePsTestContainerFunction · 0.95
TestRunHostLookupFunction · 0.95

Calls 1

CommandMethod · 0.65

Tested by 15

preparePsTestContainerFunction · 0.76
TestRunHostLookupFunction · 0.76
TestHostPortAlreadyInUseFunction · 0.76
TestRunDNSFunction · 0.76
TestRunNetworkHost2613Function · 0.76