Skip to content

Commit

Permalink
fix: update flags incompatible with detached mode
Browse files Browse the repository at this point in the history
The flag --no-start in the up command is also incompatible with --detached
  • Loading branch information
sbalay authored and AlexZeitler committed Jul 10, 2020
1 parent 7a1f05e commit c808fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit c808fa2

Please sign in to comment.