centos7.9下的docker安装

1、修改repo为国内源,这里用的是阿里源
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
image

扩展源
sudo curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo

2、清理缓存并更新本地缓存,需要一会
sudo yum clean all
sudo yum makecache
image
image
查看热破列表
yum repolist

3、aliyun镜像站中的安装教程
https://developer.aliyun.com/mirror/docker-ce?spm=a2c6h.13651102.0.0.57e31b11RAUBST
image
4、安装成功
image

posted @ 2026-03-20 18:29  SmileXi  阅读(13)  评论(0)    收藏  举报