Skip to content

Commit

Permalink
Don't fail on short-lived containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 committed Oct 25, 2024
1 parent 82175cf commit 3cb30fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration-tests/pkg/executor/executor_docker_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3cb30fe

Please sign in to comment.