1package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" 2 3import ( 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 11func chroot(path string) error { 12 return nil 13} 14 15func 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} 23