赞
踩
这里以 centos 7 为例
https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11Qak63U
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y bash-completion bash-completion-extras
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
yum -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker拉取镜像默认回去 hub.docker.com 上拉取,拉取过程比较慢,我们将拉取镜像的地址修改为阿里云的,则会提高下载速度.
如果使用公有云没有这一问题
如果是自己搭建的本地镜像仓库也没有这个问题
进入 ACR 管理控制台
然后根据所对应的系统版本来配置镜像加速
yum install -y docker-compose
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。