curl -L https://github.com/docker/machine/releases/download/v0.14.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && \
install /tmp/docker-machine /usr/local/bin/docker-machine
docker-machine -v
[root@localhost ~]# docker-machine create -d virtualbox default
Creating CA: /root/.docker/machine/certs/ca.pem
Creating client certificate: /root/.docker/machine/certs/cert.pem
Running pre-create checks...
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"
我运行这里报了错,解决办法
1. ssh-keygen
2. ssh-copy-id root@193.112.12.253
3. docker-machine create -d generic --generic-ip-address=193.112.12.253 --generic-ssh-key ~/.ssh/id_rsa --generic-ssh-user=root vm
> 中间如果提示yum repolist相关的错,就更新下yum repo
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
wget http://mirrors.aliyun.com/repo/Centos-7.repo
yum update