summaryrefslogtreecommitdiff
path: root/daemon/start_windows.go
blob: cbdffb3466652e1344c52aadc625b3ab653824fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package daemon // import "github.com/docker/docker/daemon"

import (
	"github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options"
	"github.com/docker/docker/container"
	"github.com/docker/docker/pkg/system"
)

func (daemon *Daemon) getLibcontainerdCreateOptions(_ *container.Container) (string, interface{}, error) {
	if system.ContainerdRuntimeSupported() {
		opts := &options.Options{}
		return "io.containerd.runhcs.v1", opts, nil
	}
	return "", nil, nil
}