# You can use scripts for one click installation,You may need to type enter at the end # remove docker sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine # Set up repository sudo yum install -y yum-utils # Use Aliyun Docker sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # install docker from yum yum install -y docker-ce docker-ce-cli containerd.io # restart docker systemctl restart docker # cat version docker --version
# 根据官方文档提示配置CNI网络 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml # 报错:The connection to the server raw.githubusercontent.com was refused - did you specify the right host or port? 原因:外网不可访问 -> 在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP。
1 2 3
sudo vi /etc/hosts 199.232.28.133 raw.githubusercontent.com # 如下