Don't initialize networks that aren't used by any services.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-01-29 16:00:50 -05:00
commit 0810eeba10
5 changed files with 31 additions and 18 deletions

View file

@ -693,7 +693,7 @@ def run_one_off_container(container_options, project, service, options):
start_deps=True,
strategy=ConvergenceStrategy.never)
project.initialize_networks()
project.initialize()
container = service.create_container(
quiet=True,