在阿里云服务器**Linux系统尝试安装docker的时候报如下错误**,询问AI一直建议改DNS相关配置但是没用,最终通过查阅大量网络资料,建议更新dnf,最终成功安装docker.

yum install -y docker-ce
created by dnf config-manager from https://down 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'download':
- Curl error (6): Couldn't resolve host name for https://download./repodata/repomd.xml [Could not resolve host: download.]
Error: Failed to download metadata for repo 'download': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
先执行 sudo dnf update dnf命令再重新安装docker成功没有报错
