在學習用Docker搭建etcd集羣的時候,需要用到docker-machine創建幾個docker主機。
具體步驟根據Docker三劍客這篇文章執行。
但我在安裝VirtualBox階段執行sudo /sbin/vboxconfig的時候
系統提示This system is currently not set up to build kernel modules
yum install kernel-devel-CURRENT_KERNEL
Note: replace CURRENT_KERNEL with string you get from uname -r
還需要
yum install gcc make perl
最後遇到一個問題 Error with pre-create check:”VBoxManage not found. Make sure VirtualBox is installed and VBoxManage isin the path”
這是因爲虛擬機設置的問題有誤
在 虛擬機->設置 裏設置處理器的虛擬化引擎首選模式爲“Intel VT-x/EPT 或AMD-V/RVI”及“虛擬化Intel VT-x/EPT 或AMD-V/RVI(V)
文章參考
centos7安裝docker總結