diff --git a/t/t.go b/t/t.go index 6994d410aa0..6596ddfd1a5 100644 --- a/t/t.go +++ b/t/t.go @@ -112,7 +112,7 @@ func command(args ...string) *exec.Cmd { func startCluster(composeFile, prefix string) error { cmd := command( - "docker-compose", "-f", composeFile, "-p", prefix, + "docker-compose", "--compatibility", "-f", composeFile, "-p", prefix, "up", "--force-recreate", "--build", "--remove-orphans", "--detach") cmd.Stderr = nil @@ -175,7 +175,7 @@ func stopCluster(composeFile, prefix string, wg *sync.WaitGroup, err error) { if err != nil { outputLogs(prefix) } - cmd := command("docker-compose", "-f", composeFile, "-p", prefix, "down", "-v") + cmd := command("docker-compose", "--compatibility", "-f", composeFile, "-p", prefix, "down", "-v") cmd.Stderr = nil if err := cmd.Run(); err != nil { fmt.Printf("Error while bringing down cluster. Prefix: %s. Error: %v\n",