Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法通过docker machine命令创建DigitalOcean水滴_Docker_Digital Ocean_Docker Machine - Fatal编程技术网

无法通过docker machine命令创建DigitalOcean水滴

无法通过docker machine命令创建DigitalOcean水滴,docker,digital-ocean,docker-machine,Docker,Digital Ocean,Docker Machine,我运行这个命令在DigitalOcean上创建一个新的液滴 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

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

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.
但是,水滴已经创建,我可以在管理面板中看到它。你知道发生了什么事吗

码头工人: 版本17.03.1-ce-mac12(17661) 频道:稳定 d1db12684b

docker机器版本0.10.0,内部版本76ed2a6


在mac OS Sierra 10.12.3上运行似乎是docker machine 0.10.0版本的一个bug,您只需使用此命令(mac)将docker machine升级到0.12.1版本

可能的错误解释:

对于超级用户来说,也许是个更好的问题?你试过
sudo
吗?我试过sudo,但我得到了相同的错误
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