debian 12 基于清华源安装docker

清华源docker地址:

https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/

安装docker之前需要添加 GPG 公钥,主要是用来验证安装文件是否被篡改,先安装工具:curl和gnupg2,两个工具。

apt install curl gnupg2

下面是清华源GPG地址,下载和添加。

curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/gpg |apt-key add -

配置清华源

nano /etc/apt/sources.list

在尾部添加清华源,bookworm代表debian12。stable代表发布分支,主要有三个:stable(稳定版)、testing(测试版)和 unstable(不稳定版)。

deb https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm stable

更新库,然后安装

apt update
apt install docker-ce

 

posted @   老猿新码  阅读(5504)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
点击右上角即可分享
微信分享提示