archive_windows.go 670 B

123456789101112131415161718
  1. package daemon
  2. import "github.com/docker/docker/container"
  3. // checkIfPathIsInAVolume checks if the path is in a volume. If it is, it
  4. // cannot be in a read-only volume. If it is not in a volume, the container
  5. // cannot be configured with a read-only rootfs.
  6. //
  7. // This is a no-op on Windows which does not support read-only volumes, or
  8. // extracting to a mount point inside a volume. TODO Windows: FIXME Post-TP5
  9. func checkIfPathIsInAVolume(container *container.Container, absPath string) (bool, error) {
  10. return false, nil
  11. }
  12. func fixPermissions(source, destination string, uid, gid int, destExisted bool) error {
  13. // chown is not supported on Windows
  14. return nil
  15. }