Polish DockerComposeLifecycleManager

This commit is contained in:
Moritz Halbritter 2023-10-31 11:18:39 +01:00
parent 607ed86edb
commit de1ca5e60f

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()));
}