summaryrefslogtreecommitdiff
path: root/daemon/start_windows.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2021-03-19 11:56:41 +0100
committerSebastiaan van Stijn <github@gone.nl>2021-06-09 22:05:10 +0200
commit08ddbfbdac52d4e7122045a76f805dd4dba078ad (patch)
tree2220907ba86815535d27b041b8eb311b37e3bada /daemon/start_windows.go
parent86b4d88e55c7d70e77794a2b9e5fa829cc6bb8f8 (diff)
downloaddocker-08ddbfbdac52d4e7122045a76f805dd4dba078ad.tar.gz
libcontainerd: remove LCOW bits
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'daemon/start_windows.go')
-rw-r--r--daemon/start_windows.go35
1 files changed, 3 insertions, 32 deletions
diff --git a/daemon/start_windows.go b/daemon/start_windows.go
index d21fec5d70..5d01b84df5 100644
--- a/daemon/start_windows.go
+++ b/daemon/start_windows.go
@@ -2,43 +2,14 @@ package daemon // import "github.com/docker/docker/daemon"
import (
"github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options"
- "github.com/Microsoft/opengcs/client"
"github.com/docker/docker/container"
"github.com/docker/docker/pkg/system"
)
-func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Container) (string, interface{}, error) {
-
- // Set the runtime options to debug regardless of current logging level.
+func (daemon *Daemon) getLibcontainerdCreateOptions(_ *container.Container) (string, interface{}, error) {
if system.ContainerdRuntimeSupported() {
- opts := &options.Options{Debug: true}
- return "", opts, nil
- }
-
- // TODO (containerd) - Probably need to revisit LCOW options here
- // rather than blindly ignoring them.
-
- // LCOW options.
- if container.OS == "linux" {
- 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.bootparameters":
- config.BootParameters = v
- }
- }
- if err := config.Validate(); err != nil {
- return "", nil, err
- }
-
- return "", config, nil
+ // Set the runtime options to debug regardless of current logging level.
+ return "", &options.Options{Debug: true}, nil
}
-
return "", nil, nil
}