mirror of
https://github.com/moby/moby.git
synced 2026-08-03 14:41:03 +00:00
integration-cli: findContainerIP: replace dockerCmd
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -53,7 +53,7 @@ func dockerCmdWithResult(args ...string) *icmd.Result {
|
||||
|
||||
func findContainerIP(c *testing.T, id string, network string) string {
|
||||
c.Helper()
|
||||
out, _ := dockerCmd(c, "inspect", fmt.Sprintf("--format='{{ .NetworkSettings.Networks.%s.IPAddress }}'", network), id)
|
||||
out := cli.DockerCmd(c, "inspect", fmt.Sprintf("--format='{{ .NetworkSettings.Networks.%s.IPAddress }}'", network), id).Stdout()
|
||||
return strings.Trim(out, " \r\n'")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user