mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fixed bug which caused permission errors for non-root users on rw layer (Thanks @jpetazo!)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user