我想在Marathon上运行Docker容器,
所以我用 /usr/local/Cellar/mesos/0.22.1/sbin/mesos-slave --master=zk://localhost:2181/mesos --log_dir=/Users/wangyao/WorkAndLog/mesos/log --work_dir=/Users/wangyao/WorkAndLog/mesos/work --containerizers=docker,mesos
I1216 11:17:16.407368 2038878976 logging.cpp:172] INFO level logging started!
I1216 11:17:16.407878 2038878976 main.cpp:156] Build: 2015-05-12 19:28:23 by brew
I1216 11:17:16.407896 2038878976 main.cpp:158] Version: 0.22.1
Failed to create a containerizer: Could not create DockerContainerizer: Failed to execute 'docker version': exited with status 1
Failed to execute 'docker version'
它告诉我" docker version
" ,
我执行" wangyaos-MacBook-Pro-2:~ wangyao$ docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): darwin/amd64
Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
"
--containerizers=docker,mesos
我的问题:
docker version
启动mesos,我是否需要在我的Os上安装docker?答案 0 :(得分:1)
“Running Docker Containers on Marathon”使用Docker,这意味着您需要拥有Linux主机。
如果您使用的是Mac OS,则需要安装docker-toolbox才能获得可以使用docker的VirtualBox VM(虚拟机)。
docker version
显示docker客户端和docker server 的版本:服务器部分失败,因为它不在Linux内核(但是Mac内核)上运行。< / p>