yum源
cd /etc/yum.repos.d
mkdir backup
mv *.repo backup
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos8_base.repo
yum clean all
yum makecache
docker镜像
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://mirror.baidubce.com"]
}
EOF
Kubernetes镜像
tee /etc/yum.repos.d/kubernetes.repo <<-'EOF'
[kubernetes]
name=kubernetes
baseurl=https://mirrors.tuna.tsinghua.edu.cn/kubernetes/yum/repos/kubernetes-el7-$basearch
enabled=1
EOF
网友评论