在WSL2下安装docker

切换到国内源

修改/etc/apt/sources.list,阿里貌似不好用了,使用清华镜像

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

执行更新

apt update && apt upgrade -y

安装&启动

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
$ sudo service docker start

检查启动是否正常

service docker status

检查拉取镜像是否正常

docker pull busybox
docker images
posted @ 2021-06-21 20:00  宇都宫的小熊  阅读(117)  评论(2编辑  收藏  举报