dotcloud/docker

View on GitHub
daemon/start_windows.go

Summary

Maintainability
A
0 mins
Test Coverage
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(*configStore, *container.Container) (string, interface{}, error) {
    if system.ContainerdRuntimeSupported() {
        opts := &options.Options{}
        return "io.containerd.runhcs.v1", opts, nil
    }
    return "", nil, nil
}