remote_daemon_options.go 533 B

123456789101112131415161718
  1. package supervisor // import "github.com/docker/docker/libcontainerd/supervisor"
  2. // WithLogLevel defines which log level to starts containerd with.
  3. // This only makes sense if WithStartDaemon() was set to true.
  4. func WithLogLevel(lvl string) DaemonOpt {
  5. return func(r *remote) error {
  6. r.Debug.Level = lvl
  7. return nil
  8. }
  9. }
  10. // WithCRIDisabled disables the CRI plugin.
  11. func WithCRIDisabled() DaemonOpt {
  12. return func(r *remote) error {
  13. r.DisabledPlugins = append(r.DisabledPlugins, "io.containerd.grpc.v1.cri")
  14. return nil
  15. }
  16. }