Преглед на файлове

only check attached networks on running containers

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof преди 11 месеца
родител
ревизия
fa11db3a71
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      pkg/compose/convergence.go

+ 1 - 1
pkg/compose/convergence.go

@@ -337,7 +337,7 @@ func (c *convergence) mustRecreate(expected types.ServiceConfig, actual moby.Con
 		return true, nil
 	}
 
-	if c.networks != nil {
+	if c.networks != nil && actual.State == "running" {
 		// check the networks container is connected to are the expected ones
 		for net := range expected.Networks {
 			id := c.networks[net]