The nslookup, wget, and ping commands are unavailable in the high version TiDB Docker image

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb高版本docker镜像中包含的nslookup、wget、ping命令不可用

| username: TiDBer_aMxun3OT

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issues: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots / Logs / Monitoring]

  1. By default, pd uses nslookup for domain name resolution during startup, but the nslookup included in the 6.5.0 pd image is not available by default;
  2. According to the official website, modify the startUpScriptVersion configuration to use dig for domain name resolution during startup. In this case, the domain name can be resolved, but wget (the path of wget contains the domain name) is not available during the startup process;
  3. During the troubleshooting process, it was found that commands like ping are also unavailable.