container_operations_windows.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // +build windows
  2. package daemon
  3. import (
  4. "fmt"
  5. "github.com/docker/docker/container"
  6. networktypes "github.com/docker/engine-api/types/network"
  7. "github.com/docker/libnetwork"
  8. )
  9. func (daemon *Daemon) setupLinkedContainers(container *container.Container) ([]string, error) {
  10. return nil, nil
  11. }
  12. // ConnectToNetwork connects a container to a network
  13. func (daemon *Daemon) ConnectToNetwork(container *container.Container, idOrName string, endpointConfig *networktypes.EndpointSettings) error {
  14. return fmt.Errorf("Windows does not support connecting a running container to a network")
  15. }
  16. // DisconnectFromNetwork disconnects container from a network.
  17. func (daemon *Daemon) DisconnectFromNetwork(container *container.Container, n libnetwork.Network, force bool) error {
  18. return fmt.Errorf("Windows does not support disconnecting a running container from a network")
  19. }
  20. // getSize returns real size & virtual size
  21. func (daemon *Daemon) getSize(container *container.Container) (int64, int64) {
  22. // TODO Windows
  23. return 0, 0
  24. }
  25. func (daemon *Daemon) setupIpcDirs(container *container.Container) error {
  26. return nil
  27. }
  28. // TODO Windows: Fix Post-TP5. This is a hack to allow docker cp to work
  29. // against containers which have volumes. You will still be able to cp
  30. // to somewhere on the container drive, but not to any mounted volumes
  31. // inside the container. Without this fix, docker cp is broken to any
  32. // container which has a volume, regardless of where the file is inside the
  33. // container.
  34. func (daemon *Daemon) mountVolumes(container *container.Container) error {
  35. return nil
  36. }
  37. func detachMounted(path string) error {
  38. return nil
  39. }
  40. func killProcessDirectly(container *container.Container) error {
  41. return nil
  42. }
  43. func isLinkable(child *container.Container) bool {
  44. return false
  45. }