mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make sure ADD will create everything in 0755
This commit is contained in:
parent
950d0312dc
commit
f7542664e3
2 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ func CopyWithTar(src, dst string) error {
|
||||||
}
|
}
|
||||||
// Create dst, copy src's content into it
|
// Create dst, copy src's content into it
|
||||||
utils.Debugf("Creating dest directory: %s", dst)
|
utils.Debugf("Creating dest directory: %s", dst)
|
||||||
if err := os.MkdirAll(dst, 0700); err != nil && !os.IsExist(err) {
|
if err := os.MkdirAll(dst, 0755); err != nil && !os.IsExist(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
utils.Debugf("Calling TarUntar(%s, %s)", src, dst)
|
utils.Debugf("Calling TarUntar(%s, %s)", src, dst)
|
||||||
|
|
|
@ -182,7 +182,7 @@ The copy obeys the following rules:
|
||||||
written at ``<dst>``.
|
written at ``<dst>``.
|
||||||
* If ``<dest>`` doesn't exist, it is created along with all missing
|
* If ``<dest>`` doesn't exist, it is created along with all missing
|
||||||
directories in its path. All new files and directories are created
|
directories in its path. All new files and directories are created
|
||||||
with mode 0700, uid and gid 0.
|
with mode 0755, uid and gid 0.
|
||||||
|
|
||||||
3.8 ENTRYPOINT
|
3.8 ENTRYPOINT
|
||||||
--------------
|
--------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue