remote_daemon_options_linux.go 271 B

123456789
  1. package supervisor // import "github.com/docker/docker/libcontainerd/supervisor"
  2. // WithOOMScore defines the oom_score_adj to set for the containerd process.
  3. func WithOOMScore(score int) DaemonOpt {
  4. return func(r *remote) error {
  5. r.OOMScore = score
  6. return nil
  7. }
  8. }