archive_windows.go 605 B

12345678910111213141516171819202122
  1. package chrootarchive
  2. import (
  3. "io"
  4. "github.com/docker/docker/pkg/archive"
  5. "github.com/docker/docker/pkg/longpath"
  6. )
  7. // chroot is not supported by Windows
  8. func chroot(path string) error {
  9. return nil
  10. }
  11. func invokeUnpack(decompressedArchive io.ReadCloser,
  12. dest string,
  13. options *archive.TarOptions) error {
  14. // Windows is different to Linux here because Windows does not support
  15. // chroot. Hence there is no point sandboxing a chrooted process to
  16. // do the unpack. We call inline instead within the daemon process.
  17. return archive.Unpack(decompressedArchive, longpath.AddPrefix(dest), options)
  18. }