github.com/walkingsparrow/docker@v1.4.2-0.20151218153551-b708a2249bfa/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 ) 9 10 // Container holds fields specific to the Windows implementation. See 11 // CommonContainer for standard fields common to all containers. 12 type Container struct { 13 CommonContainer 14 15 // Fields below here are platform specific. 16 } 17 18 // CreateDaemonEnvironment creates a new environment variable slice for this container. 19 func (container *Container) CreateDaemonEnvironment(linkedEnv []string) []string { 20 // On Windows, nothing to link. Just return the container environment. 21 return container.Config.Env 22 } 23 24 // SetupWorkingDirectory initializes the container working directory. 25 // This is a NOOP In windows. 26 func (container *Container) SetupWorkingDirectory() error { 27 return nil 28 } 29 30 // UnmountIpcMounts unmount Ipc related mounts. 31 // This is a NOOP on windows. 32 func (container *Container) UnmountIpcMounts(unmount func(pth string) error) { 33 } 34 35 // IpcMounts returns the list of Ipc related mounts. 36 func (container *Container) IpcMounts() []execdriver.Mount { 37 return nil 38 } 39 40 // UnmountVolumes explicitly unmounts volumes from the container. 41 func (container *Container) UnmountVolumes(forceSyscall bool) error { 42 return nil 43 } 44 45 // TmpfsMounts returns the list of tmpfs mounts 46 func (container *Container) TmpfsMounts() []execdriver.Mount { 47 return nil 48 } 49 50 // appendNetworkMounts appends any network mounts to the array of mount points passed in. 51 // Windows does not support network mounts (not to be confused with SMB network mounts), so 52 // this is a no-op. 53 func appendNetworkMounts(container *Container, volumeMounts []volume.MountPoint) ([]volume.MountPoint, error) { 54 return volumeMounts, nil 55 }