[Exchange and share] 安装 Docker 的方式
Tofloor
poster avatar
爱开发
deepin
2023-02-11 21:49
Author

刚刚发现,安装 Docker 挺简单的……只需要改动一下。

按照官方教程的话,可以通过官网的 Debian 方式。

https://docs.docker.com/engine/install/debian/

中国镜像加速的话,可以使用阿里源、清华源或者北外源。

(阿里源看起来比较慢,清华源还可以,最快的感觉是北外,但北外同步不太及时,比如昨天的更新现在就没在同步中)

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

 echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

修改 /etc/apt/sources.list.d/docker.list 中的 beigebookworm 即可。bookworm 是在 https://download.docker.com/linux/debian/dists/ 目录下的文件夹名称。

https://download.docker.com/linux/debian/dists/

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

Reply Favorite View the author
All Replies
touchzen
deepin
2023-02-14 16:06
#1

这个方法不错,赞一个。

Reply View the author
大川小朋友
deepin
2023-05-07 01:27
#2

deepin20版本

仓库 “https://download.docker.com/linux/debian apricot Release” 没有 Release 文件

应该如何解决呢

Reply View the author
爱开发
deepin
2023-05-08 00:17
#3
  • Debian Bookworm 12 (testing)
  • Debian Bullseye 11 (stable)
  • Debian Buster 10 (oldstable)
  • Raspbian Bookworm 12 (testing)
  • Raspbian Bullseye 11 (stable)
  • Raspbian Buster 10 (oldstable)

deepin 20 是基于 debian 10 的。你可以使用 Buster

你将你的 apricot,改成 buster 看看

Reply View the author