daemon/config: remove deprecated RootDeprecated field
Since b58de39ca7
, this option was now only used
to produce a fatal error when starting the daemon. That change is in the 23.0
release, so we can remove it from the master branch.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
32b299f63e
commit
e19dff9285
2 changed files with 0 additions and 9 deletions
|
@ -62,9 +62,6 @@ func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
|
||||||
|
|
||||||
// Deprecated flags / options
|
// Deprecated flags / options
|
||||||
|
|
||||||
//nolint:staticcheck // TODO(thaJeztah): remove in next release.
|
|
||||||
flags.StringVarP(&conf.RootDeprecated, "graph", "g", conf.RootDeprecated, "Root of the Docker runtime")
|
|
||||||
_ = flags.MarkDeprecated("graph", "Use --data-root instead")
|
|
||||||
flags.BoolVarP(&conf.AutoRestart, "restart", "r", true, "--restart on the daemon has been deprecated in favor of --restart policies on docker run")
|
flags.BoolVarP(&conf.AutoRestart, "restart", "r", true, "--restart on the daemon has been deprecated in favor of --restart policies on docker run")
|
||||||
_ = flags.MarkDeprecated("restart", "Please use a restart policy on docker run")
|
_ = flags.MarkDeprecated("restart", "Please use a restart policy on docker run")
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,6 @@ type CommonConfig struct {
|
||||||
NetworkDiagnosticPort int `json:"network-diagnostic-port,omitempty"`
|
NetworkDiagnosticPort int `json:"network-diagnostic-port,omitempty"`
|
||||||
Pidfile string `json:"pidfile,omitempty"`
|
Pidfile string `json:"pidfile,omitempty"`
|
||||||
RawLogs bool `json:"raw-logs,omitempty"`
|
RawLogs bool `json:"raw-logs,omitempty"`
|
||||||
RootDeprecated string `json:"graph,omitempty"` // Deprecated: use Root instead. TODO(thaJeztah): remove in next release.
|
|
||||||
Root string `json:"data-root,omitempty"`
|
Root string `json:"data-root,omitempty"`
|
||||||
ExecRoot string `json:"exec-root,omitempty"`
|
ExecRoot string `json:"exec-root,omitempty"`
|
||||||
SocketGroup string `json:"group,omitempty"`
|
SocketGroup string `json:"group,omitempty"`
|
||||||
|
@ -558,11 +557,6 @@ func findConfigurationConflicts(config map[string]interface{}, flags *pflag.Flag
|
||||||
// such as config.DNS, config.Labels, config.DNSSearch,
|
// such as config.DNS, config.Labels, config.DNSSearch,
|
||||||
// as well as config.MaxConcurrentDownloads, config.MaxConcurrentUploads and config.MaxDownloadAttempts.
|
// as well as config.MaxConcurrentDownloads, config.MaxConcurrentUploads and config.MaxDownloadAttempts.
|
||||||
func Validate(config *Config) error {
|
func Validate(config *Config) error {
|
||||||
//nolint:staticcheck // TODO(thaJeztah): remove in next release.
|
|
||||||
if config.RootDeprecated != "" {
|
|
||||||
return errors.New(`the "graph" config file option is deprecated; use "data-root" instead`)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate log-level
|
// validate log-level
|
||||||
if config.LogLevel != "" {
|
if config.LogLevel != "" {
|
||||||
if _, err := logrus.ParseLevel(config.LogLevel); err != nil {
|
if _, err := logrus.ParseLevel(config.LogLevel); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue