start_windows.go 481 B

123456789101112131415
  1. package daemon // import "github.com/docker/docker/daemon"
  2. import (
  3. "github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options"
  4. "github.com/docker/docker/container"
  5. "github.com/docker/docker/pkg/system"
  6. )
  7. func (daemon *Daemon) getLibcontainerdCreateOptions(*configStore, *container.Container) (string, interface{}, error) {
  8. if system.ContainerdRuntimeSupported() {
  9. opts := &options.Options{}
  10. return "io.containerd.runhcs.v1", opts, nil
  11. }
  12. return "", nil, nil
  13. }