wsl2 debian安装docker
应用商店下载debian
安装docker
安装依赖
打开安装好的docker安装依赖
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
添加docker的GPG公钥
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
添加软件仓库
sudo add-apt-repository "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian $(lsb_release -cs) stable"
最后安装
apt-get update sudo apt-get install docker-ce
如果提示docker-ce没有
那就先执行
apt-get install docker
再继续安装
安装成功后启动
docker run hello-world # 添加到用户组 sudo adduser $USER docker
相关推荐
changecan 2020-11-19
changecan 2020-09-22
王道革 2020-11-25
bwyyziq 2020-11-22
pigsmall 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13
WanKaShing 2020-11-12
yangkang 2020-11-12
滴水穿石点石成金 2020-11-12
张荣珍 2020-11-12
wuxunanjing 2020-11-11
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
yangkang 2020-11-09
worldsnow 2020-11-06
MichaelJScofield 2020-11-06