Skip to content

Commit 038c81f

Browse files
committed
only check volume mounts for updated config
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent a20b69a commit 038c81f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/compose/convergence.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ func checkExpectedNetworks(expected types.ServiceConfig, actual moby.Container,
384384
func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, volumes map[string]string) bool {
385385
// check container's volume mounts and search for the expected ones
386386
for _, vol := range expected.Volumes {
387+
if vol.Type != string(mmount.TypeVolume) {
388+
continue
389+
}
387390
id := volumes[vol.Source]
388391
found := false
389392
for _, mount := range actual.Mounts {

0 commit comments

Comments
 (0)