Skip to content

Commit 428b020

Browse files
committed
more tests
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 137c312 commit 428b020

File tree

2 files changed

+1799
-1
lines changed

2 files changed

+1799
-1
lines changed

pkg/compose/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ func needsRecreate(expected types.ServiceConfig, actual container.Summary, netwo
10981098
return true, "image digest changed", nil
10991099
}
11001100

1101-
if networks != nil && actual.State == container.StateRunning {
1101+
if networks != nil && actual.State == container.StateRunning && actual.NetworkSettings != nil {
11021102
if checkExpectedNetworks(expected, actual, networks) {
11031103
return true, "network configuration changed", nil
11041104
}

0 commit comments

Comments
 (0)