fix: update flags incompatible with detached mode

The flag --no-start in the up command is also incompatible with --detached
This commit is contained in:
Sebastián Balay 2020-07-08 16:38:36 +02:00 committed by Alexander Zeitler
parent 7a1f05e07b
commit c808fa2b90

View file

@ -114,7 +114,7 @@ const execCompose = (command, args, options: IDockerComposeOptions = {}): Promis
const shouldUseDefaultNonInteractiveFlag = function(options: IDockerComposeOptions = {}): boolean {
const commandOptions = options.commandOptions || [];
const containsOtherNonInteractiveFlag = commandOptions.reduce((memo: boolean, item: string | string[]) => {
return memo && !item.includes('--abort-on-container-exit');
return memo && !item.includes('--abort-on-container-exit') && !item.includes('--no-start');
}, true);
return containsOtherNonInteractiveFlag;
};