Merge pull request #8904 from ndeloof/volumeZ
type mismatch checking tmpfs conflicting options
This commit is contained in:
commit
e44222664a
|
|
@ -952,8 +952,8 @@ func buildMountOptions(volume types.ServiceVolumeConfig) (*mount.BindOptions, *m
|
||||||
if volume.Bind != nil {
|
if volume.Bind != nil {
|
||||||
logrus.Warnf("mount of type `tmpfs` should not define `bind` option")
|
logrus.Warnf("mount of type `tmpfs` should not define `bind` option")
|
||||||
}
|
}
|
||||||
if volume.Tmpfs != nil {
|
if volume.Volume != nil {
|
||||||
logrus.Warnf("mount of type `tmpfs` should not define `volumeZ` option")
|
logrus.Warnf("mount of type `tmpfs` should not define `volume` option")
|
||||||
}
|
}
|
||||||
return nil, nil, buildTmpfsOptions(volume.Tmpfs)
|
return nil, nil, buildTmpfsOptions(volume.Tmpfs)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue