2015-04-27 12:25:38 -04:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package daemon
|
|
|
|
|
2015-06-03 12:26:41 -04:00
|
|
|
import (
|
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
2015-07-16 17:14:58 -04:00
|
|
|
"github.com/docker/docker/runconfig"
|
2015-06-03 12:26:41 -04:00
|
|
|
)
|
2015-05-19 16:05:25 -04:00
|
|
|
|
2015-07-30 19:10:56 -04: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 12:25:38 -04:00
|
|
|
func copyOwnership(source, destination string) error {
|
2015-05-26 12:43:21 -04:00
|
|
|
return nil
|
2015-04-29 18:53:35 -04:00
|
|
|
}
|
|
|
|
|
2015-07-30 19:10:56 -04: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 16:05:25 -04:00
|
|
|
func (container *Container) setupMounts() ([]execdriver.Mount, error) {
|
2015-05-26 12:43:21 -04:00
|
|
|
return nil, nil
|
2015-04-29 18:53:35 -04:00
|
|
|
}
|
2015-06-08 16:45:28 -04:00
|
|
|
|
2015-07-16 17:14:58 -04: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 16:45:28 -04:00
|
|
|
return nil
|
|
|
|
}
|
2015-06-03 12:26:41 -04:00
|
|
|
|
2015-07-30 19:10:56 -04:00
|
|
|
// registerMountPoints initializes the container mount points with the
|
|
|
|
// configured volumes and bind mounts. Windows does not support volumes or
|
|
|
|
// mount points.
|
2015-07-16 17:14:58 -04:00
|
|
|
func (daemon *Daemon) registerMountPoints(container *Container, hostConfig *runconfig.HostConfig) error {
|
|
|
|
return nil
|
2015-06-03 12:26:41 -04:00
|
|
|
}
|