docker 网站被禁处理办法
sudo curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
docker 安装命令
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
查看服务管理方式
ps -p 1 -o comm=
启动服务
sudo /ect/init.d/docker start
授权非root
sudo chmod /var/run/docker.sock
标签:sudo,wsl,apt,etc,ce,https,docker,ubuntu20.4
From: https://www.cnblogs.com/guanchaoguo/p/18336805