diff --git a/integration-cli/docker_utils.go b/integration-cli/docker_utils.go index 1915995e0b..d0b54aa27c 100644 --- a/integration-cli/docker_utils.go +++ b/integration-cli/docker_utils.go @@ -627,8 +627,10 @@ func deleteAllContainers() error { return err } - if err = deleteContainer(containers); err != nil { - return err + if containers != "" { + if err = deleteContainer(containers); err != nil { + return err + } } return nil }