mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
+ Builder: ADD of a local file will detect tar archives and unpack them
into the container instead of copying them as a regular file. * Builder: ADD uses tar/untar for copies instead of calling 'cp -ar'. This is more consistent, reduces the number of dependencies, and fixe #896.
This commit is contained in:
@@ -548,6 +548,7 @@ func GetKernelVersion() (*KernelVersionInfo, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// FIXME: this is deprecated by CopyWithTar in archive.go
|
||||
func CopyDirectory(source, dest string) error {
|
||||
if output, err := exec.Command("cp", "-ra", source, dest).CombinedOutput(); err != nil {
|
||||
return fmt.Errorf("Error copy: %s (%s)", err, output)
|
||||
|
||||
Reference in New Issue
Block a user