github.com/ruphin/docker@v1.10.1/container/container_windows.go (about) 1 // +build windows 2 3 package container 4 5 import ( 6 "github.com/docker/docker/daemon/execdriver" 7 "github.com/docker/docker/volume" 8 "github.com/docker/engine-api/types/container" 9 ) 10 11 // Container holds fields specific to the Windows implementation. See 12 // CommonContainer for standard fields common to all containers. 13 type Container struct { 14 CommonContainer 15 16 // Fields below here are platform specific. 17 } 18 19 // CreateDaemonEnvironment creates a new environment variable slice for this container. 20 func (container *Container) CreateDaemonEnvironment(linkedEnv []string) []string { 21 // On Windows, nothing to link. Just return the container environment. 22 return container.Config.Env 23 } 24 25 // SetupWorkingDirectory initializes the container working directory. 26 // This is a NOOP In windows. 27 func (container *Container) SetupWorkingDirectory() error { 28 return nil 29 } 30 31 // UnmountIpcMounts unmount Ipc related mounts. 32 // This is a NOOP on windows. 33 func (container *Container) UnmountIpcMounts(unmount func(pth string) error) { 34 } 35 36 // IpcMounts returns the list of Ipc related mounts. 37 func (container *Container) IpcMounts() []execdriver.Mount { 38 return nil 39 } 40 41 // UnmountVolumes explicitly unmounts volumes from the container. 42 func (container *Container) UnmountVolumes(forceSyscall bool, volumeEventLog func(name, action string, attributes map[string]string)) error { 43 return nil 44 } 45 46 // TmpfsMounts returns the list of tmpfs mounts 47 func (container *Container) TmpfsMounts() []execdriver.Mount { 48 return nil 49 } 50 51 // UpdateContainer updates resources of a container 52 func (container *Container) UpdateContainer(hostConfig *container.HostConfig) error { 53 return nil 54 } 55 56 // appendNetworkMounts appends any network mounts to the array of mount points passed in. 57 // Windows does not support network mounts (not to be confused with SMB network mounts), so 58 // this is a no-op. 59 func appendNetworkMounts(container *Container, volumeMounts []volume.MountPoint) ([]volume.MountPoint, error) { 60 return volumeMounts, nil 61 }