Every line of 'docker compose args' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
48 @click.command() 49 @click.option('--build', is_flag=True) 50 @click.option('--detach', is_flag=True) 51 @click.option('--recreate', is_flag=True) 52 @click.option('--ecs', is_flag=True) 53 @click.argument('args') 54 def compose(args, build, recreate, detach, ecs): 55 """Subprocess python shell.""" 56 if ecs: 57 call = ['docker-compose', '-f', 'dock/ecs-compose.yml', '-p', 'multi'] 58 else: 59 call = ['docker-compose', '-f', 'dock/docker-compose.yml', '-p', 'multi'] 60 if args in choices: 61 click.secho('docker-compose {}'.format(args)) 62 call.append(args) 63 if detach: 64 call.append('-d') 65 if build: 66 call.append('--build') 67 if recreate: 68 call.append('--force-recreate') 69 else: 70 click.secho('\nCompose command is not available see:\n') 71 call.append('--help') 72 subprocess.call(call)
223 def set_command_and_args(config, entrypoint, command): 224 if isinstance(entrypoint, six.string_types): 225 entrypoint = split_command(entrypoint) 226 if isinstance(command, six.string_types): 227 command = split_command(command) 228 229 if entrypoint: 230 config['Command'] = entrypoint + command 231 return 232 233 if command: 234 config['Args'] = command