2015-04-27 16:25:38 +00:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package daemon
|
|
|
|
|
2015-06-03 16:26:41 +00:00
|
|
|
import (
|
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
2015-07-16 21:14:58 +00:00
|
|
|
"github.com/docker/docker/runconfig"
|
2015-06-03 16:26:41 +00:00
|
|
|
)
|
2015-05-19 20:05:25 +00:00
|
|
|
|
2015-07-30 23:10:56 +00:00
|
|
|
// copyOwnership copies the permissions and group of a source file to the
|
|
|
|
// destination file. This is a no-op on Windows.
|
2015-04-27 16:25:38 +00:00
|
|
|
func copyOwnership(source, destination string) error {
|
2015-05-26 16:43:21 +00:00
|
|
|
return nil
|
2015-04-29 22:53:35 +00:00
|
|
|
}
|
|
|
|
|
2015-07-30 23:10:56 +00:00
|
|
|
// setupMounts configures the mount points for a container.
|
|
|
|
// setupMounts on Linux iterates through each of the mount points for a
|
|
|
|
// container and calls Setup() on each. It also looks to see if is a network
|
|
|
|
// mount such as /etc/resolv.conf, and if it is not, appends it to the array
|
|
|
|
// of mounts. As Windows does not support mount points, this is a no-op.
|
2015-05-19 20:05:25 +00:00
|
|
|
func (container *Container) setupMounts() ([]execdriver.Mount, error) {
|
2015-05-26 16:43:21 +00:00
|
|
|
return nil, nil
|
2015-04-29 22:53:35 +00:00
|
|
|
}
|
2015-06-08 20:45:28 +00:00
|
|
|
|
2015-07-16 21:14:58 +00:00
|
|
|
// verifyVolumesInfo ports volumes configured for the containers pre docker 1.7.
|
|
|
|
// As the Windows daemon was not supported before 1.7, this is a no-op
|
|
|
|
func (daemon *Daemon) verifyVolumesInfo(container *Container) error {
|
2015-06-08 20:45:28 +00:00
|
|
|
return nil
|
|
|
|
}
|
2015-06-03 16:26:41 +00:00
|
|
|
|
2015-07-30 23:10:56 +00:00
|
|
|
// registerMountPoints initializes the container mount points with the
|
|
|
|
// configured volumes and bind mounts. Windows does not support volumes or
|
|
|
|
// mount points.
|
2015-09-29 17:51:40 +00:00
|
|
|
func (daemon *Daemon) registerMountPoints(container *Container, hostConfig *runconfig.HostConfig) error {
|
2015-07-16 21:14:58 +00:00
|
|
|
return nil
|
2015-06-03 16:26:41 +00:00
|
|
|
}
|