1. 安裝dockerlinux
yum install -y dockerios
2. 修改 /etc/docker/daemon.json 文件並添加上 registry-mirrors 鍵值docker
$ vim /etc/docker/daemon.json { "registry-mirrors": ["https://registry.docker-cn.com"] }
3. 啓動並測試json
$ sudo systemctl start dockervim
$ sudo docker run hello-worldoracle
4. 安裝 etcd curl
$ sudo yum install etcd -y測試
5. kubectl安裝url
$ wget https://dl.k8s.io/v1.10.0/kubernetes-client-linux-amd64.tar.gz $ tar -xzvf kubernetes-client-linux-amd64.tar.gz $ cd kubernetes/client/bin $ sudo chmod +x ./kubectl $ sudo mv ./kubectl /usr/local/bin/kubectl
6. 安裝VirtualBox 安裝spa
vim /etc/yum.repos.d/virtualbox.repo #具體內容以下: [virtualbox] name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc #執行如下命令,完成VirtualBox 的安裝 yum -y install VirtualBox-5.2
7. 安裝minikube
curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.30.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
8. 安裝依賴,配置virtualbox
yum -y install kernel-devel kernel-devel-3.10.0-957.el7.x86_64
sudo /sbin/vboxconfig
9. 主板的bios中的Intel Virtualization Technology設置成了disable的,重啓電腦進入bios,將其設置成abled
10. 注意VMware的虛擬機開啓VT-X/AMD-v enabled
解決方式:
step 1:關閉虛擬機(注意:是關閉,不是掛起;不然爲關機狀態下,下圖不能勾選!)
step 2 :