Use 0755 in image source nested directory permissions
docker build ignores directory permissions on ADD (replaces them with
0755), but for cases where we use docker cp on the source into the
destination container or image (for imagebuilder or future work) we'll
need 0755
@@ -280,7 +280,7 @@ func copyImageSource(dockerClient DockerClient, containerID, sourceDir, destDir
return err
}
glog.V(4).Infof("Creating image destination directory: %s", destDir)
- err := os.MkdirAll(destDir, 0644)
+ err := os.MkdirAll(destDir, 0755)
if err != nil {
return err
}
