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