docker-machine 无法创建初始化DOCKER宿主机

weixin_38052215 2016-07-13 04:30:16
直接上LOG,试了很多次都不行,有人用过这个命令吗?在国际版上没有问题

C:\Users\LeiXu>docker-machine create --driver azure --azure-subscription-id 【MYID】--azure-environment "AzureChinaCloud" --azure-location "chinanorth" --azure-open-port 80 mydockerhostchina
Running pre-create checks...
(mydockerhostchina) Registering subscription to resource provider.  subs="【MYID】" ns="Microsoft.Network"
(mydockerhostchina) Completed machine pre-create checks.
Creating machine...
(mydockerhostchina) Querying existing resource group.  name="docker-machine"
(mydockerhostchina) Creating resource group.  name="docker-machine" location="chinanorth"
(mydockerhostchina) Configuring availability set.  name="docker-machine"
(mydockerhostchina) Configuring network security group.  name="mydockerhostchina-firewall" location="chinanorth"
(mydockerhostchina) Querying if virtual network already exists.  name="docker-machine-vnet" location="chinanorth"
(mydockerhostchina) Configuring subnet.  name="docker-machine" vnet="docker-machine-vnet" cidr="192.168.0.0/16"
(mydockerhostchina) Creating public IP address.  name="mydockerhostchina-ip" static=false
(mydockerhostchina) Creating network interface.  name="mydockerhostchina-nic"
(mydockerhostchina) Creating storage account.  name="vhdsjctfj5hm2kkmvvne70pa" location="chinanorth"
(mydockerhostchina) Creating virtual machine.  osImage="canonical:UbuntuServer:15.10:latest" name="mydockerhostchina" location="chinanorth" size="Standard_A2" username="docker-user"
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...
Error getting SSH command to check if the daemon is up: Something went wrong running an SSH command!
command : sudo docker version
err     : Process exited with: 1. Reason was:  ()
output  : sudo: docker: command not found


Error getting SSH command to check if the daemon is up: Something went wrong running an SSH command!
command : sudo docker version
err     : Process exited with: 1. Reason was:  ()
output  : sudo: docker: command not found

运行以后到portal里面可以看到资源组和里面的资源,包括虚拟机都已经创建了,但是docker-machine无法连接。
...全文
24 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧