Explorar o código

Connect container to networks before starting it

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad %!s(int64=9) %!d(string=hai) anos
pai
achega
2651c00f0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -424,8 +424,8 @@ class Service(object):
             return self.start_container(container)
 
     def start_container(self, container):
-        container.start()
         self.connect_container_to_networks(container)
+        container.start()
         return container
 
     def connect_container_to_networks(self, container):