github.com/kobeld/docker@v1.12.0-rc1/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  func (daemon *Daemon) setupIpcDirs(container *container.Container) error {
    34  	return nil
    35  }
    36  
    37  // TODO Windows: Fix Post-TP5. This is a hack to allow docker cp to work
    38  // against containers which have volumes. You will still be able to cp
    39  // to somewhere on the container drive, but not to any mounted volumes
    40  // inside the container. Without this fix, docker cp is broken to any
    41  // container which has a volume, regardless of where the file is inside the
    42  // container.
    43  func (daemon *Daemon) mountVolumes(container *container.Container) error {
    44  	return nil
    45  }
    46  
    47  func detachMounted(path string) error {
    48  	return nil
    49  }
    50  
    51  func killProcessDirectly(container *container.Container) error {
    52  	return nil
    53  }
    54  
    55  func isLinkable(child *container.Container) bool {
    56  	return false
    57  }