mirror of
https://github.com/docker/compose.git
synced 2025-07-24 22:24:41 +02:00
Ensure network exists when calling run before up
Otherwise the daemon will error out because the network doesn't exist yet. Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
ab0ddb593f
commit
9370cb033c
@ -380,6 +380,8 @@ class TopLevelCommand(DocoptCommand):
|
|||||||
start_deps=True,
|
start_deps=True,
|
||||||
strategy=ConvergenceStrategy.never,
|
strategy=ConvergenceStrategy.never,
|
||||||
)
|
)
|
||||||
|
elif project.use_networking:
|
||||||
|
project.ensure_network_exists()
|
||||||
|
|
||||||
tty = True
|
tty = True
|
||||||
if detach or options['-T'] or not sys.stdin.isatty():
|
if detach or options['-T'] or not sys.stdin.isatty():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user