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:
David Calavera
2015-09-18 12:53:06 -07:00
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -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
}