挺离谱的,简单一个docker安装,找个网上了很多随身WIFI的安装教程博客,都因为网络原因和架构原因安装失败,于是自己重新整理了一下安装流程,保证中国大陆用户能够顺利安装上。
随身WIFI设置
adb shell
export TERM=linux
nmtui #设置网络
systemctl stop iptables.service
systemctl disable iptables.service #关闭防火墙
rm -rf /etc/apt/sources.list.d/*
apt autopurge -y nano
cat <<EOF> /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
deb http://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
#deb http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
EOF
apt update && apt upgrade -y
apt install -y curl
apt clean
echo none > /sys/class/leds/blue:wifi/trigger
echo none > /sys/class/leds/red:os/trigger
vi /etc/rc.local #复制粘贴上面两条控制LED指令在exit 0之前
卸载旧版本
sudo apt-get remove docker \
docker-engine \
docker.io
安装依赖
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
添加GPG密钥
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
添加 Docker 软件源
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
更新apt源
sudo apt-get update
安装docker
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker换源
vi /etc/docker/daemon.json
# 复制粘贴以下内容
{
"registry-mirrors": [
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://kfwkfulq.mirror.aliyuncs.com"
]
}
重启docker服务
sudo service docker restart