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
6cd9bab35b
commit
596261e759
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue