Merge pull request #2808 from aanand/connect-before-start
Connect container to networks before starting it
This commit is contained in:
commit
80d02e84e2
1 changed files with 1 additions and 1 deletions
|
|
@ -424,8 +424,8 @@ class Service(object):
|
||||||
return self.start_container(container)
|
return self.start_container(container)
|
||||||
|
|
||||||
def start_container(self, container):
|
def start_container(self, container):
|
||||||
container.start()
|
|
||||||
self.connect_container_to_networks(container)
|
self.connect_container_to_networks(container)
|
||||||
|
container.start()
|
||||||
return container
|
return container
|
||||||
|
|
||||||
def connect_container_to_networks(self, container):
|
def connect_container_to_networks(self, container):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue