code: func printServerWarningsLegacy(dockerCli command.Cli, info types.Info) {
  	if info.OSType == "windows" {
  		return
  	}
  	if !info.MemoryLimit {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No memory limit support")
  	}
  	if !info.SwapLimit {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No swap limit support")
  	}
  	if !info.KernelMemory {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No kernel memory limit support")
  	}
  	if !info.OomKillDisable {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No oom kill disable support")
  	}
  	if !info.CPUCfsQuota {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No cpu cfs quota support")
  	}
  	if !info.CPUCfsPeriod {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No cpu cfs period support")
  	}
  	if !info.CPUShares {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No cpu shares support")
  	}
  	if !info.CPUSet {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: No cpuset support")
  	}
  	if !info.IPv4Forwarding {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: IPv4 forwarding is disabled")
  	}
  	if !info.BridgeNfIptables {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: bridge-nf-call-iptables is disabled")
  	}
  	if !info.BridgeNfIP6tables {
  		fmt.Fprintln(dockerCli.Err(), "WARNING: bridge-nf-call-ip6tables is disabled")
  	}
  }
docs: // printServerWarningsLegacy generates warnings based on information returned by the daemon.
  // DEPRECATED: warnings are now generated by the daemon, and returned in
  // info.Warnings. This function is used to provide backward compatibility with
  // daemons that do not provide these warnings. No new warnings should be added
  // here.