Merge branch '3.1.x'

Closes gh-38145
This commit is contained in:
Moritz Halbritter
2023-10-31 11:21:56 +01:00
2 changed files with 7 additions and 2 deletions

View File

@@ -121,7 +121,9 @@ class DockerComposeLifecycleManager {
if (lifecycleManagement.shouldStart() && runningServices.isEmpty()) {
start.getCommand().applyTo(dockerCompose, start.getLogLevel());
runningServices = dockerCompose.getRunningServices();
wait = (wait != Wait.ONLY_IF_STARTED) ? wait : Wait.ALWAYS;
if (wait == Wait.ONLY_IF_STARTED) {
wait = Wait.ALWAYS;
}
if (lifecycleManagement.shouldStop()) {
this.shutdownHandlers.add(() -> stop.getCommand().applyTo(dockerCompose, stop.getTimeout()));
}