rancher @ centos 7 @ hyperv
在 win10 hyperv 上 安装 centos7
启动centos7
github ip地址
不做这一步, k3s安装命令 “curl -sfL https://get.k3s.io | sh -” 中访问github 将无法访问
echo "
#去https://github.com/521xueweihan/GitHub520 找
######github hosts end
">/etc/hosts
docker国内镜像
touch /etc/docker/daemon.json
echo '{
"registry-mirrors": ["https://registry.docker-cn.com"]
}' > /etc/docker/daemon.json
#或者: 登陆自己的阿里云 得到docker镜像加速地址
echo '{
"registry-mirrors": ["https://xxxx.mirror.aliyuncs.com"]
}' > /etc/docker/daemon.json
systemctrl restart docker
#aliyun docker需要登陆
docker login registry.cn-hangzhou.aliyuncs.com