install.sh

    1. rm -f /etc/yum.repos.d/*
    2. curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
    3. curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    4. yum makecache
    5. yum -y install vim unzip net-tools curl
    6. systemctl stop firewalld
    7. systemctl disable firewalld
    8. iptables -F
    9. sed -i 's/enforcing/disabled/' /etc/selinux/config
    10. setenforce 0
    11. yum install -y yum-utils device-mapper-persistent-data lvm2
    12. yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    13. sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
    14. yum makecache
    15. yum -y install docker-ce
    16. systemctl enable docker
    17. systemctl start docker
    18. curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
    19. rpm -Uvh minikube-latest.x86_64.rpm
    20. yum install -y conntrack
    21. swapoff -a
    22. echo "1" > /proc/sys/net/bridge/bridge-nf-call-iptables
    23. minikube start --image-mirror-country cn --registry-mirror=https://hrrn0cg9.mirror.aliyuncs.com --driver="none"