查看: 147|回复: 0

[Debian] debian 12 基于清华源安装docker

[复制链接]

2

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2009-4-27
发表于 2024-7-3 11:35:00 | 显示全部楼层 |阅读模式

清华源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

 



来源:https://www.cnblogs.com/netcore3/p/18281305
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

圆梦公社,专注于为全球华人提供纯粹技术交流的地方,请勿发布任何政治及违法的言论。如有相关侵权、举报、投诉及建议等,请发 E-mail:dzh188@hotmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部