integration-cli: findContainerIP: replace dockerCmd

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-07-27 13:37:07 +02:00
parent ba32bebd05
commit eafb618594
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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'")
}