bobrik / mesos-compose Goto Github PK
View Code? Open in Web Editor NEWMesos cluster in one command
Mesos cluster in one command
This repo is missing a license. Without a license, all code is copyright the author and may not be used by anyone else.
Please use something like http://choosealicense.com/ to decide what license to use. I recommend MIT or GPL.
A novel effort by Add a License Please
Hi,
thanks for your project.
I just tried running it on my Macbook using Docker for Mac.
When I execute make run
the containers exit.
Here's the output:
slave-one_1 | Failed to create a containerizer: Could not create DockerContainerizer: Failed to create docker: Failed to get docker version: Failed to execute 'docker -H unix:///var/run/docker.sock --version': exited with status 127
I think the reason is that the docker binary mounted into the container is a Mac binary, while it actually runs in a Linux Virtual Machine:
❯❯❯ file /usr/local/bin/docker
/usr/local/bin/docker: Mach-O 64-bit executable x86_64
Hello
I am trying to run your compose config and I have an issue with a slave.
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cb6f3379b271 mesosphere/chronos:chronos-2.4.0-0.1.20151007110204.ubuntu1404-mesos-0.24.1-0.2.35.ubuntu1404 "/usr/bin/chronos run" 2 minutes ago Up 2 minutes mesoscompose_chronos_1
be23c57a37db mesosphere/mesos-slave:0.27.0-0.2.190.ubuntu1404 "mesos-slave" 2 minutes ago Exited (1) 3 seconds ago mesoscompose_slave-one_1
ac96f652b386 mesosphere/mesos-master:0.27.0-0.2.190.ubuntu1404 "mesos-master --regis" 2 minutes ago Up 2 minutes mesoscompose_master_1
f59483db84eb mesosphere/marathon:v0.15.1 "./bin/start" 2 minutes ago Up 2 minutes mesoscompose_marathon_1
4912b8f8eaee bobrik/zookeeper "/run.sh" 2 minutes ago Up 2 minutes mesoscompose_zk_1
The logs from the slave container:
docker logs be23c57a37db
I0212 11:16:31.997665 6869 main.cpp:211] Build: 2016-02-01 17:11:06 by root
I0212 11:16:31.997864 6869 main.cpp:213] Version: 0.27.0
I0212 11:16:31.997872 6869 main.cpp:216] Git tag: 0.27.0
I0212 11:16:31.997879 6869 main.cpp:220] Git SHA: c29b3b6801846cda270aab17a670542ec5d238f5
Failed to create a containerizer: Could not create DockerContainerizer: Failed to create docker: Failed to get docker version: Failed to execute 'docker -H unix:///var/run/docker.sock --version': exited with status 127
I use Docker version 1.10.1, build 9e83765 and docker-compose version 1.6.0, build d99cad6.
master and slave is Exited.
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
40511515f807 mesosphere/mesos-slave:0.28.1-2.0.20.ubuntu1404 "mesos-slave" 9 minutes ago Exited (134) 9 minutes ago mesoscompose_slave-one_1
3b280f186549 mesosphere/mesos-master:0.28.1-2.0.20.ubuntu1404 "mesos-master --regis" 9 minutes ago Exited (139) 9 minutes ago mesoscompose_master_1
5f0db5bd3ec1 mesosphere/marathon:v1.1.1 "./bin/start" 9 minutes ago Up 9 minutes mesoscompose_marathon_1
af71dc447fde bobrik/zookeeper "/run.sh" 9 minutes ago Up 9 minutes mesoscompose_zk_1
ERROR: for slave-one Cannot start service slave-one: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:359: container init caused \\\"rootfs_linux.go:53: mounting \\\\\\\"/usr/local/bin/docker\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/devicemapper/mnt/40d3aed03a8acf5fd82f627d087eb63a6b341b8f8e9f36bcf374d65945b84cde/rootfs\\\\\\\" at \\\\\\\"/var/lib/docker/devicemapper/mnt/40d3aed03a8acf5fd82f627d087eb63a6b341b8f8e9f36bcf374d65945b84cde/rootfs/usr/bin/docker\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\n"
ERROR: Encountered errors while bringing up the project.
Makefile:13: recipe for t
when runnning slave-one
$docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
$uname -a
Linux svartalfheim 4.9.3-200.fc25.x86_64 #1 SMP Fri Jan 13 01:01:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$cat /etc/fedora-release
Fedora release 25 (Twenty Five)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.