mirror of
https://github.com/docker/compose.git
synced 2025-07-28 16:14:06 +02:00
checkExpectedVolumes must ignore anonymous volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
571a1af013
commit
be09b2e8ce
@ -387,6 +387,9 @@ func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, v
|
|||||||
if vol.Type != string(mmount.TypeVolume) {
|
if vol.Type != string(mmount.TypeVolume) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if vol.Source == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
id := volumes[vol.Source]
|
id := volumes[vol.Source]
|
||||||
found := false
|
found := false
|
||||||
for _, mount := range actual.Mounts {
|
for _, mount := range actual.Mounts {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user