libcontainerd/libcontainerd_windows.go
85ad4b16
 package libcontainerd // import "github.com/docker/docker/libcontainerd"
 
 import (
 	"context"
 
 	"github.com/containerd/containerd"
 	"github.com/docker/docker/libcontainerd/local"
 	"github.com/docker/docker/libcontainerd/remote"
 	libcontainerdtypes "github.com/docker/docker/libcontainerd/types"
 	"github.com/docker/docker/pkg/system"
 )
 
 // NewClient creates a new libcontainerd client from a containerd client
f63f73a4
 func NewClient(ctx context.Context, cli *containerd.Client, stateDir, ns string, b libcontainerdtypes.Backend) (libcontainerdtypes.Client, error) {
85ad4b16
 	if !system.ContainerdRuntimeSupported() {
 		return local.NewClient(ctx, cli, stateDir, ns, b)
 	}
f63f73a4
 	return remote.NewClient(ctx, cli, stateDir, ns, b)
85ad4b16
 }