点此到文末惊喜↩︎
特别鸣谢,这位大佬写的非常好:https://blog.csdn.net/weixin_42571882/article/details/134015815
比我速度快、简单且稳定的,评论区给我你的博客,输了叫你大哥
git clone https://gitee.com/water_stop/environment-configuration-file.git
cd environment-configuration-file/ && sh docker_install.sh
sh replace_source.sh
systemctl status docker
友情提示:确定为wsl2+ubuntu22.04,若按照以下步骤失败,请完全卸载后重装docker,并检查wsl版本
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg