remote_daemon_options_linux.go 430 B

1234567891011
  1. package supervisor // import "github.com/docker/docker/libcontainerd/supervisor"
  2. // WithOOMScore defines the oom_score_adj to set for the containerd process.
  3. //
  4. // Deprecated: setting the oom-score-adjust from the daemon itself is deprecated, and should be handled by the process-manager starting the daemon instead.
  5. func WithOOMScore(score int) DaemonOpt {
  6. return func(r *remote) error {
  7. r.oomScore = score
  8. return nil
  9. }
  10. }