daemon/start_windows.go
7b2e5216
 package daemon
 
 import (
ee0587a4
 	"github.com/Microsoft/opengcs/client"
7b2e5216
 	"github.com/docker/docker/container"
 )
 
ddae20c0
 func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Container) (interface{}, error) {
ffdef625
 	// LCOW options.
0380fbff
 	if container.OS == "linux" {
ffdef625
 		config := &client.Config{}
 		if err := config.GenerateDefault(daemon.configStore.GraphOptions); err != nil {
 			return nil, err
 		}
 		// Override from user-supplied options.
 		for k, v := range container.HostConfig.StorageOpt {
 			switch k {
 			case "lcow.kirdpath":
 				config.KirdPath = v
 			case "lcow.kernel":
 				config.KernelFile = v
 			case "lcow.initrd":
 				config.InitrdFile = v
 			case "lcow.vhdx":
 				config.Vhdx = v
 			case "lcow.bootparameters":
 				config.BootParameters = v
 			}
 		}
 		if err := config.Validate(); err != nil {
 			return nil, err
 		}
ddae20c0
 
 		return config, nil
ffdef625
 	}
 
ddae20c0
 	return nil, nil
7b2e5216
 }