Ubuntu 安装 Docker
Docker Ubuntu 评论 1 大约 1083 字镜像源
https://mirror.tuna.tsinghua.edu.cn/help/docker-ce/
卸载
卸载原先安装过的docker
。
sudo apt-get remove docker docker-engine docker.io
安装依赖
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
异常信息
如果有报错,提示gnupg2
没安装,可以更换镜像源为清华大学Ubuntu
镜像源。
Package gnupg2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
gpgv gpgsm gnupg-l10n gnupg dirmngr
E: Package 'gnupg2' has no installation candidate
信任公钥
信任Docker
的GPG
公钥。
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
添加仓库
amd64
sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
树莓派或其它 ARM
echo "deb [arch=armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
安装 Docker
sudo apt-get update
sudo apt-get install docker-ce
阅读 1606 · 发布于 2022-01-15
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
-
fHLvlxbf 1楼
e
Chrome | Windows 10 2023-07-24
随便看看
换一批
-
只有一部分接口跨域问题阅读 2867
-
MySQL 中的乐观锁和悲观锁阅读 1959
-
PHP 设置 json_encode 不转义中文阅读 2051
-
Spring Boot @ComponentScan exclude 不起作用阅读 1226
-
GoJS 给右键菜单添加外边框阅读 1290
-
为什么 HashMap 长度必须是 2 的 n 次幂阅读 1198
-
Docker No route to host阅读 2758
-
算法每日一题20190622:罗马数字转整数阅读 2354
-
Spring 使用 filter 过滤器、ContentCachingWrapper 包装类获取请求参数和返回值阅读 1255
-
Nginx 502 Bad Gateway阅读 347