mirror of https://github.com/docker/docs.git
Fixed bug which caused permission errors for non-root users on rw layer (Thanks @jpetazo!)
This commit is contained in:
parent
d93070b207
commit
279917e353
|
@ -22,10 +22,10 @@ type Filesystem struct {
|
|||
}
|
||||
|
||||
func (fs *Filesystem) createMountPoints() error {
|
||||
if err := os.Mkdir(fs.RootFS, 0700); err != nil && !os.IsExist(err) {
|
||||
if err := os.Mkdir(fs.RootFS, 0755); err != nil && !os.IsExist(err) {
|
||||
return err
|
||||
}
|
||||
if err := os.Mkdir(fs.RWPath, 0700); err != nil && !os.IsExist(err) {
|
||||
if err := os.Mkdir(fs.RWPath, 0755); err != nil && !os.IsExist(err) {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue