summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-07-12 15:07:38 +0200
committerSebastiaan van Stijn <github@gone.nl>2022-07-12 15:39:20 +0200
commit68bf777eced495df352be219da9c9c1070af5c99 (patch)
tree9b2328b082b25dff99fa9cf560bff8c0a812f995 /cmd
parent494dadb8a38d0e1d566dc33cd0ba1f1e324d57de (diff)
downloaddocker-68bf777eced495df352be219da9c9c1070af5c99.tar.gz
daemon: remove deprecated fields and flags for cluster-advertise
Removes: - CommonConfig.ClusterStore - CommonConfig.ClusterOpts - CommonConfig.ClusterAdvertise - The deprecated --cluster-advertise, --cluster-store, and --cluster-store-opt flags Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dockerd/config.go6
-rw-r--r--cmd/dockerd/daemon.go11
2 files changed, 0 insertions, 17 deletions
diff --git a/cmd/dockerd/config.go b/cmd/dockerd/config.go
index 4e3b4f2f07..a1c5a3c42b 100644
--- a/cmd/dockerd/config.go
+++ b/cmd/dockerd/config.go
@@ -85,12 +85,6 @@ func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
_ = flags.MarkHidden("graph")
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.StringVar(&conf.ClusterAdvertise, "cluster-advertise", "", "Address or interface name to advertise")
- _ = flags.MarkDeprecated("cluster-advertise", "Swarm classic is deprecated. Please use Swarm-mode (docker swarm init)")
- flags.StringVar(&conf.ClusterStore, "cluster-store", "", "URL of the distributed storage backend")
- _ = flags.MarkDeprecated("cluster-store", "Swarm classic is deprecated. Please use Swarm-mode (docker swarm init)")
- flags.Var(opts.NewNamedMapOpts("cluster-store-opts", conf.ClusterOpts, nil), "cluster-store-opt", "Set cluster store options")
- _ = flags.MarkDeprecated("cluster-store-opt", "Swarm classic is deprecated. Please use Swarm-mode (docker swarm init)")
return nil
}
diff --git a/cmd/dockerd/daemon.go b/cmd/dockerd/daemon.go
index 7aedbf2288..ae8844c762 100644
--- a/cmd/dockerd/daemon.go
+++ b/cmd/dockerd/daemon.go
@@ -79,9 +79,6 @@ func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
if cli.Config, err = loadDaemonCliConfig(opts); err != nil {
return err
}
- if err := checkDeprecatedOptions(cli.Config); err != nil {
- return err
- }
serverConfig, err := newAPIServerConfig(cli.Config)
if err != nil {
@@ -513,14 +510,6 @@ func normalizeHosts(config *config.Config) error {
return nil
}
-func checkDeprecatedOptions(config *config.Config) error {
- // Overlay networks with external k/v stores have been deprecated
- if config.ClusterAdvertise != "" || len(config.ClusterOpts) > 0 || config.ClusterStore != "" {
- return errors.New("Host-discovery and overlay networks with external k/v stores are deprecated. The 'cluster-advertise', 'cluster-store', and 'cluster-store-opt' options have been removed")
- }
- return nil
-}
-
func initRouter(opts routerOptions) {
decoder := runconfig.ContainerDecoder{
GetSysInfo: func() *sysinfo.SysInfo {