You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
daemon: remove handling for deprecated "oom-score-adjust", and produce error
This option was deprecated in 5a922dc, which
is part of the v24.0.0 release, so we can remove it from master.
This patch;
- adds a check to ValidatePlatformConfig, and produces a fatal error
if oom-score-adjust is set
- removes the deprecated libcontainerd/supervisor.WithOOMScore
- removes the warning from docker info
With this patch:
dockerd --oom-score-adjust=-500 --validate
Flag --oom-score-adjust has been deprecated, and will be removed in the next release.
unable to configure the Docker daemon with file /etc/docker/daemon.json: merged configuration validation from file and command line flags failed: DEPRECATED: The "oom-score-adjust" config parameter and the dockerd "--oom-score-adjust" options have been removed.
And when using `daemon.json`:
dockerd --validate
unable to configure the Docker daemon with file /etc/docker/daemon.json: merged configuration validation from file and command line flags failed: DEPRECATED: The "oom-score-adjust" config parameter and the dockerd "--oom-score-adjust" options have been removed.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
// TODO(thaJeztah) change this to use /proc/self/oom_score_adj instead,
62
-
// which would allow us to set the correct score even if dockerd's score
63
-
// was set through other means (such as systemd or "manually").
64
-
supervisor.WithOOMScore(cli.Config.OOMScoreAdjust), //nolint:staticcheck // ignore SA1019 (WithOOMScore is deprecated); will be removed in the next release.
65
-
}
66
-
ifcli.Config.OOMScoreAdjust!=0 {
67
-
logrus.Warn(`DEPRECATED: The "oom-score-adjust" config parameter and the dockerd "--oom-score-adjust" option will be removed in the next release.`)
68
-
}
69
-
returnopts, nil
70
-
}
71
-
72
59
// setupConfigReloadTrap configures the SIGHUP signal to reload the configuration.
v.Warnings=append(v.Warnings, "WARNING: bridge-nf-call-ip6tables is disabled")
166
166
}
167
-
ifdaemon.configStore.OOMScoreAdjust!=0 {
168
-
v.Warnings=append(v.Warnings, `DEPRECATED: The "oom-score-adjust" config parameter and the dockerd "--oom-score-adjust" option will be removed in the next release`)
0 commit comments