change permissions of initLayer to be readable by non-root users

This commit is contained in:
Sridatta Thatipamala 2013-07-22 14:55:07 -07:00
parent 5d8efc107d
commit 945033f1cc

View file

@ -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