查看: 94|回覆: 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:qiongdian@foxmail.com

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

在本版发帖返回顶部