From 038c81f34ef6a6255d3a1b647df19616fdfd773d Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 16 Dec 2024 08:55:09 +0100 Subject: [PATCH] only check volume mounts for updated config Signed-off-by: Nicolas De Loof --- pkg/compose/convergence.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/compose/convergence.go b/pkg/compose/convergence.go index 3518a3ebc1..ee7284196e 100644 --- a/pkg/compose/convergence.go +++ b/pkg/compose/convergence.go @@ -384,6 +384,9 @@ func checkExpectedNetworks(expected types.ServiceConfig, actual moby.Container, func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, volumes map[string]string) bool { // check container's volume mounts and search for the expected ones for _, vol := range expected.Volumes { + if vol.Type != string(mmount.TypeVolume) { + continue + } id := volumes[vol.Source] found := false for _, mount := range actual.Mounts {