change permissions of initLayer to be readable by non-root users
This commit is contained in:
parent
5d8efc107d
commit
945033f1cc
1 changed files with 1 additions and 1 deletions
2
graph.go
2
graph.go
|
@ -205,7 +205,7 @@ func (graph *Graph) getDockerInitLayer() (string, error) {
|
|||
return "", err
|
||||
}
|
||||
initLayer := tmp.imageRoot("_dockerinit")
|
||||
if err := os.Mkdir(initLayer, 0700); err != nil && !os.IsExist(err) {
|
||||
if err := os.Mkdir(initLayer, 0755); err != nil && !os.IsExist(err) {
|
||||
// If directory already existed, keep going.
|
||||
// For all other errors, abort.
|
||||
return "", err
|
||||
|
|
Loading…
Reference in a new issue