mirror of
https://github.com/docker/compose.git
synced 2025-04-07 19:55:07 +02:00
only check attached networks on running containers
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
1ff9b758d2
commit
fa11db3a71
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user