moby/libcontainerd/supervisor
Sebastiaan van Stijn fb96b94ed0
daemon: remove handling for deprecated "oom-score-adjust", and produce error
This option was deprecated in 5a922dc162, 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 <github@gone.nl>
2023-05-06 16:36:17 +02:00
..
remote_daemon.go libcontainerd/supervisor: use pkg/pidfile for reading and writing pidfile 2022-11-04 01:50:26 +01:00
remote_daemon_linux.go move pkg/system: process to a separate package 2022-11-04 01:50:23 +01:00
remote_daemon_options.go libcontainerd/supervisor: don't write log-level to config file 2022-08-11 14:11:06 +02:00
remote_daemon_windows.go move pkg/system: process to a separate package 2022-11-04 01:50:23 +01:00
utils_linux.go libcontainerd: split client and supervisor 2018-08-06 10:23:04 -07:00
utils_windows.go libcontainerd: split client and supervisor 2018-08-06 10:23:04 -07:00