MCPcopy Index your code
hub / github.com/moby/moby / dockerCmdWithError

Function dockerCmdWithError

integration-cli/docker_utils_test.go:37–43  ·  view source on GitHub ↗

Deprecated: use cli.Docker or cli.DockerCmd

(args ...string)

Source from the content-addressed store, hash-verified

35
36// Deprecated: use cli.Docker or cli.DockerCmd
37func dockerCmdWithError(args ...string) (string, int, error) {
38 result := cli.Docker(cli.Args(args...))
39 if result.Error != nil {
40 return result.Combined(), result.ExitCode, result.Compare(icmd.Success)
41 }
42 return result.Combined(), result.ExitCode, result.Error
43}
44
45func findContainerIP(t *testing.T, id string, network string) string {
46 t.Helper()

Calls 4

DockerFunction · 0.92
ArgsFunction · 0.92
CombinedMethod · 0.80
CompareMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…