MCPcopy
hub / github.com/moby/moby / DockerCmd

Function DockerCmd

integration-cli/cli/cli.go:29–32  ·  view source on GitHub ↗

DockerCmd executes the specified docker command and expect a success

(t testing.TB, args ...string)

Source from the content-addressed store, hash-verified

27
28// DockerCmd executes the specified docker command and expect a success
29func DockerCmd(t testing.TB, args ...string) *icmd.Result {
30 t.Helper()
31 return Docker(Args(args...)).Assert(t, icmd.Success)
32}
33
34// BuildCmd executes the specified docker build command and expect a success
35func BuildCmd(t testing.TB, name string, cmdOperators ...CmdOperator) *icmd.Result {

Calls 3

DockerFunction · 0.85
ArgsFunction · 0.70
HelperMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…