github.com/wulonghui/docker@v1.8.0-rc2/pkg/chrootarchive/archive_windows.go (about)

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