在 WSL2 中安装 docker 首先需要安装配置好 WSL2 参考 WSL 配置 安装步骤 确认系统版本为 CentOS 7 及以上 cat /etc/redhat-release 卸载旧版本 yum remove docker docker-client \