mirror of
https://github.com/moby/moby.git
synced 2026-08-13 17:06:44 +00:00
Signed-off-by: Charity Kathure <ckathure@microsoft.com> Co-authored-by: Olli Janatuinen <olli.janatuinen@gmail.com>
17 lines
525 B
Go
17 lines
525 B
Go
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/daemon/config"
|
|
"github.com/docker/docker/pkg/system"
|
|
)
|
|
|
|
func (daemon *Daemon) getLibcontainerdCreateOptions(*configStore, *container.Container) (string, interface{}, error) {
|
|
if system.ContainerdRuntimeSupported() {
|
|
opts := &options.Options{}
|
|
return config.WindowsV2RuntimeName, opts, nil
|
|
}
|
|
return "", nil, nil
|
|
}
|