github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/libcontainerd/supervisor/remote_daemon_options.go (about)

     1  package supervisor // import "github.com/docker/docker/libcontainerd/supervisor"
     2  
     3  // WithLogLevel defines which log level to start containerd with.
     4  func WithLogLevel(lvl string) DaemonOpt {
     5  	return func(r *remote) error {
     6  		if lvl == "info" {
     7  			// both dockerd and containerd default log-level is "info",
     8  			// so don't pass the default.
     9  			lvl = ""
    10  		}
    11  		r.logLevel = lvl
    12  		return nil
    13  	}
    14  }
    15  
    16  // WithCRIDisabled disables the CRI plugin.
    17  func WithCRIDisabled() DaemonOpt {
    18  	return func(r *remote) error {
    19  		r.DisabledPlugins = append(r.DisabledPlugins, "io.containerd.grpc.v1.cri")
    20  		return nil
    21  	}
    22  }