From be09b2e8cec6cbc3f8d1e8483b203312e7d4b8f1 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 19 Dec 2024 11:12:46 +0100 Subject: [PATCH] checkExpectedVolumes must ignore anonymous volumes 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 c6abb6ce10..acfdc6cdc7 100644 --- a/pkg/compose/convergence.go +++ b/pkg/compose/convergence.go @@ -387,6 +387,9 @@ func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, v if vol.Type != string(mmount.TypeVolume) { continue } + if vol.Source == "" { + continue + } id := volumes[vol.Source] found := false for _, mount := range actual.Mounts {