不能通过docker-machine命令创buildDigitalOcean Droplet

我运行这个命令在DigitalOcean上创build一个新的液滴

docker-machine create --driver digitalocean --digitalocean-access-token xxxxxxx --digitalocean-size 1gb docker-app-machine 

但它没有成功执行,这是日志:

 Running pre-create checks... Creating machine... (docker-app-machine) Creating SSH key... (docker-app-machine) Creating Digital Ocean droplet... (docker-app-machine) Waiting for IP address to be assigned to the Droplet... Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with ubuntu(systemd)... Installing Docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Error creating machine: Error running provisioning: ssh command error: command : sudo systemctl -f start docker err : exit status 1 output : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 

但是,液滴是创build的,我可以在pipe理面板中看到它。 你知道发生了什么事吗?

Docker:版本17.03.1-ce-mac12(17661)频道:stable d1db12684b

docker机版本0.10.0,构build76ed2a6

在Mac OS Sierra 10.12.3上运行

它似乎是一个版本0.10.0的docker-machine的错误,你只需要使用这个命令(mac)将docker-machine升级到0.12.1版本,

 curl -L https://github.com/docker/machine/releases/download/v0.12.1/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \ chmod +x /usr/local/bin/docker-machine 

错误的可能解释:docker -machine使用digitalocean驱动程序创build:ssh命令错误