Merge pull request #16349 from cpuguy83/16302_deprecate_autocreate_binds
deprecate bind path auto-create Upstream-commit: e61abac5fa1c1ce2330e34c8eb51d9592dde2dd3 Component: engine
This commit is contained in:
@@ -53,6 +53,7 @@ func (m *mountPoint) Setup() (string, error) {
|
||||
if !os.IsNotExist(err) {
|
||||
return "", err
|
||||
}
|
||||
logrus.Warnf("Auto-creating non-existant volume host path %s, this is deprecated and will be removed soon", m.Source)
|
||||
if err := system.MkdirAll(m.Source, 0755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user