无法在Vagrant上安装minimesos - 无法运行命令'up'。空值

时间:2017-05-25 08:42:15

标签: ubuntu docker centos vagrant minimesos

我在CentOS 7.3和Ubuntu 16.04上测试过。 docker版本不同,但虚拟环境是相同的。一个工作站在Vagrant上有多个虚拟机。

CentOS 7.3

[root@localhost ~]# docker version
Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-common-1.12.6-16.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      3a094bd/1.12.6
 Built:           Fri Apr 14 13:46:13 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-common-1.12.6-16.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      3a094bd/1.12.6
 Built:           Fri Apr 14 13:46:13 2017
 OS/Arch:         linux/amd64

[root@localhost ~]# curl -sSL https://minimesos.org/install | sh
[root@localhost ~]# export PATH=$PATH:/home/alg/.minimesos/bin
[root@localhost ~]# minimesos up
Pulling containersol/minimesos-cli:0.13.0
Trying to pull repository docker.io/containersol/minimesos-cli ...
0.13.0: Pulling from docker.io/containersol/minimesos-cli

b7f33cc0b48e: Pull complete
43a564ae36a3: Pull complete
efb75a810eee: Pull complete
caf0c110d33e: Pull complete
aadff284a195: Pull complete
26bffb7df44f: Pull complete
Digest: sha256:abe376953d06aee44e66545d228e7738afad28acbb80d221f10f1d5dd699c783
Failed to run command 'up'. null

Ubuntu 16.04

root@vagrant:~# docker version
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be

root@vagrant:~# curl -sSL https://minimesos.org/install | sh
root@vagrant:~# export PATH=$PATH:/home/alg/.minimesos/bin
root@vagrant:~# minimesos up
Pulling containersol/minimesos-cli:0.13.0
0.13.0: Pulling from containersol/minimesos-cli
b7f33cc0b48e: Pull complete
43a564ae36a3: Pull complete
efb75a810eee: Pull complete
caf0c110d33e: Pull complete
aadff284a195: Pull complete
26bffb7df44f: Pull complete
Digest: sha256:abe376953d06aee44e66545d228e7738afad28acbb80d221f10f1d5dd699c783
Status: Downloaded newer image for containersol/minimesos-cli:0.13.0
Failed to run command 'up'. null

他们都返回此错误:

Failed to run command 'up'. null

我从谷歌搜索试图找到一些东西,也删除所有的docker图像以保持一个新的环境,但结果是一样的。是因为网络吗?还是其他什么?我不知道。

1 个答案:

答案 0 :(得分:0)

问题可能是您尚未创建minimesosFile

首先运行minimesos init,然后再次尝试运行minimesos up