当前位置: 首页 > 淘宝 > 正文

玩客云刷armbian bullseye换国内源,并安装docker

1:给armbian bullseye换国内源:

nano /etc/apt/sources.list

将里面的内容替换为:

deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

阿里云源

deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

stretch版本的阿里云源

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free


保存退出, 然后替换Armbian 源

nano /etc/apt/sources.list.d/armbian.list

将内容替换为

deb https://mirrors.tuna.tsinghua.edu.cn/armbian bullseye main bullseye-utils bullseye-desktop

保存后更新生效:

apt-get update && apt-get upgrade

保存退出

最后生效

apt-get update

到此Armbian系统更换源完成, 接下来我们安装docker


————————————————
安装软件包以允许使用基于 HTTPS 的存储库

apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

安装docker

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh --mirror Aliyun

配置阿里云镜像加速器

可以通过修改daemon配置文件 /etc/docker/daemon.json 来使用加速器。

mkdir -p /etc/docker

tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://registry.docker-cn.com"],
  "registry-mirrors": ["https://【自己账号的加速ID】.mirror.aliyuncs.com"]
}
EOF

systemctl daemon-reload

systemctl restart docker

验证安装是否成功

docker version

下一步安装docker可视化管理面板,Portainer或者fast os docker。(两者二选一)

Portainer安装代码:

docker pull portainer/portainer-ce:linux-arm
docker volume create portainer_data
docker run -d \
--name portainer \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart=always \
portainer/portainer-ce:linux-arm

fast os docker安装代码:

docker run --restart always -p 8081:8081 -p 8082:8082 -e TZ="Asia/Shanghai" -d -v /var/run/docker.sock:/var/run/docker.sock -v /etc/docker/:/etc/docker/ wangbinxingkong/fast:latest

然后访问你的IP+端口号就可以访问了,Portainer是9000,fast os docker是8081

Portainer卸载方法:

docker container rm -f portainer

rm将移除容器,-f将在移除容器之前强制停止容器。
您可以列出所有的容器

docker container ls

本文固定链接: https://www.eoowo.com/?p=1827 | 火星博客

该日志由 Rainer 于2023年03月09日发表在 淘宝 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: 玩客云刷armbian bullseye换国内源,并安装docker | 火星博客

玩客云刷armbian bullseye换国内源,并安装docker:等您坐沙发呢!

发表评论

CAPTCHAis initialing...
快捷键:Ctrl+Enter