diff --git a/api/types/container/deprecated.go b/api/types/container/deprecated.go deleted file mode 100644 index 0cb70e3638..0000000000 --- a/api/types/container/deprecated.go +++ /dev/null @@ -1,16 +0,0 @@ -package container // import "github.com/docker/docker/api/types/container" - -// ContainerCreateCreatedBody OK response to ContainerCreate operation -// -// Deprecated: use CreateResponse -type ContainerCreateCreatedBody = CreateResponse - -// ContainerWaitOKBody OK response to ContainerWait operation -// -// Deprecated: use WaitResponse -type ContainerWaitOKBody = WaitResponse - -// ContainerWaitOKBodyError container waiting error, if any -// -// Deprecated: use WaitExitError -type ContainerWaitOKBodyError = WaitExitError diff --git a/api/types/types.go b/api/types/types.go index 8cec40fd52..07de235036 100644 --- a/api/types/types.go +++ b/api/types/types.go @@ -297,8 +297,6 @@ type Info struct { Labels []string ExperimentalBuild bool ServerVersion string - ClusterStore string `json:",omitempty"` // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated - ClusterAdvertise string `json:",omitempty"` // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated Runtimes map[string]Runtime DefaultRuntime string Swarm swarm.Info diff --git a/api/types/volume/deprecated.go b/api/types/volume/deprecated.go deleted file mode 100644 index ab622d8ccb..0000000000 --- a/api/types/volume/deprecated.go +++ /dev/null @@ -1,11 +0,0 @@ -package volume // import "github.com/docker/docker/api/types/volume" - -// VolumeCreateBody Volume configuration -// -// Deprecated: use CreateOptions -type VolumeCreateBody = CreateOptions - -// VolumeListOKBody Volume list response -// -// Deprecated: use ListResponse -type VolumeListOKBody = ListResponse 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 { diff --git a/daemon/config/config.go b/daemon/config/config.go index 0afcbd4437..645beb8c03 100644 --- a/daemon/config/config.go +++ b/daemon/config/config.go @@ -176,23 +176,6 @@ type CommonConfig struct { // alive upon daemon shutdown/start LiveRestoreEnabled bool `json:"live-restore,omitempty"` - // ClusterStore is the storage backend used for the cluster information. It is used by both - // multihost networking (to store networks and endpoints information) and by the node discovery - // mechanism. - // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated - ClusterStore string `json:"cluster-store,omitempty"` - - // ClusterOpts is used to pass options to the discovery package for tuning libkv settings, such - // as TLS configuration settings. - // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated - ClusterOpts map[string]string `json:"cluster-store-opts,omitempty"` - - // ClusterAdvertise is the network endpoint that the Engine advertises for the purpose of node - // discovery. This should be a 'host:port' combination on which that daemon instance is - // reachable by other hosts. - // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated - ClusterAdvertise string `json:"cluster-advertise,omitempty"` - // MaxConcurrentDownloads is the maximum number of downloads that // may take place at a time for each pull. MaxConcurrentDownloads int `json:"max-concurrent-downloads,omitempty"`