mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
set propagation default
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
e885bc084d
commit
cb00aaad28
@ -1114,8 +1114,15 @@ func buildBindOption(bind *types.ServiceVolumeBind) *mount.BindOptions {
|
|||||||
if bind == nil {
|
if bind == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// I miss ternary operator
|
||||||
|
propagation := types.PropagationRPrivate
|
||||||
|
if bind.Propagation != "" {
|
||||||
|
propagation = bind.Propagation
|
||||||
|
}
|
||||||
|
|
||||||
return &mount.BindOptions{
|
return &mount.BindOptions{
|
||||||
Propagation: mount.Propagation(bind.Propagation),
|
Propagation: mount.Propagation(propagation),
|
||||||
CreateMountpoint: bind.CreateHostPath,
|
CreateMountpoint: bind.CreateHostPath,
|
||||||
// NonRecursive: false, FIXME missing from model ?
|
// NonRecursive: false, FIXME missing from model ?
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user