mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
use bind API for bind mounts
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
29e642e232
commit
c83f1285a8
@ -862,11 +862,12 @@ func (s *composeService) buildContainerVolumes(
|
|||||||
v.Source = m.Source
|
v.Source = m.Source
|
||||||
fallthrough
|
fallthrough
|
||||||
case !requireMountAPI(v.Bind):
|
case !requireMountAPI(v.Bind):
|
||||||
vol := findVolumeByName(p.Volumes, m.Source)
|
source := m.Source
|
||||||
if vol != nil {
|
if vol := findVolumeByName(p.Volumes, m.Source); vol != nil {
|
||||||
binds = append(binds, toBindString(vol.Name, v))
|
source = m.Source
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
|
binds = append(binds, toBindString(source, v))
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case mount.TypeVolume:
|
case mount.TypeVolume:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user