github.com/endophage/docker@v1.4.2-0.20161027011718-242853499895/pkg/chrootarchive/archive_windows.go (about)

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