From 3cb30fea78190a76ff33ec8a2c076fc8143a04d5 Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Fri, 25 Oct 2024 17:37:05 +0200 Subject: [PATCH] Don't fail on short-lived containers --- integration-tests/pkg/executor/executor_docker_api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration-tests/pkg/executor/executor_docker_api.go b/integration-tests/pkg/executor/executor_docker_api.go index f1d5c068d3..9b8edd2222 100644 --- a/integration-tests/pkg/executor/executor_docker_api.go +++ b/integration-tests/pkg/executor/executor_docker_api.go @@ -147,7 +147,8 @@ func (d *dockerAPIExecutor) StartContainer(startConfig config.ContainerStartConf return NoOutput, err } - if inspect.State.Running { + // Container is running or has successfully completed execution + if inspect.State.Running || inspect.State.ExitCode == 0 { return NoOutput, nil } else { return NoOutput, fmt.Errorf("Container %s is not running",