无法通过 docker-machine 命令创建 DigitalOcean Droplet
Cannot create DigitalOcean Droplet through docker-machine command
我运行这个命令在 DigitalOcean 上创建一个新的 droplet
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.
但是,创建了 Droplet,我可以在管理面板中看到它。你知道这是怎么回事吗?
Docker:
版本 17.03.1-ce-mac12 (17661)
渠道:稳定
d1db12684b
docker-machine 版本 0.10.0,构建 76ed2a6
运行宁 mac OS Sierra 10.12.3
好像是docker-machine 0.10.0版本的bug,你只需要升级docker-machine到0.12.1 版本使用此命令(mac)
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
错误的可能解释:
我运行这个命令在 DigitalOcean 上创建一个新的 droplet
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.
但是,创建了 Droplet,我可以在管理面板中看到它。你知道这是怎么回事吗?
Docker: 版本 17.03.1-ce-mac12 (17661) 渠道:稳定 d1db12684b
docker-machine 版本 0.10.0,构建 76ed2a6
运行宁 mac OS Sierra 10.12.3
好像是docker-machine 0.10.0版本的bug,你只需要升级docker-machine到0.12.1 版本使用此命令(mac)
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
错误的可能解释: