mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-20 07:01:23 +00:00
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:
parent
7a1f05e07b
commit
c808fa2b90
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ const execCompose = (command, args, options: IDockerComposeOptions = {}): Promis
|
||||||
const shouldUseDefaultNonInteractiveFlag = function(options: IDockerComposeOptions = {}): boolean {
|
const shouldUseDefaultNonInteractiveFlag = function(options: IDockerComposeOptions = {}): boolean {
|
||||||
const commandOptions = options.commandOptions || [];
|
const commandOptions = options.commandOptions || [];
|
||||||
const containsOtherNonInteractiveFlag = commandOptions.reduce((memo: boolean, item: string | string[]) => {
|
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);
|
}, true);
|
||||||
return containsOtherNonInteractiveFlag;
|
return containsOtherNonInteractiveFlag;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue