Public Repository

Last pushed: 2 years ago
Short Description
Runs a Mesos Slave process
Full Description

If you're using boot2docker, the install directory for docker is a little different.

boot2docker:

docker run -d \
--net=host \
--privileged \
-e MESOS_HOSTNAME=${CONTAINER_IP} \
-e MESOS_IP=${CONTAINER_IP} \
-e MESOS_WORK_DIR=/var/mesos \
-e MESOS_LOG_DIR=/var/log \
-e MESOS_MASTER=zk://${MESOS_MASTER}:2181/mesos \
-e MESOS_CONTAINERIZERS=docker,mesos \
-e MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins \
-p 5051:5051 \
-v /sys:/sys \
-v /usr/local/bin/docker:/usr/bin/docker:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /lib64/libdevmapper.so.1.02:/lib/libdevmapper.so.1.02:ro \
justinwatkinson/mesos-slave

#ubuntu (different docker location)
docker run -d \
--net=host \
--privileged \
-e MESOS_HOSTNAME=${CONTAINER_IP} \
-e MESOS_IP=${CONTAINER_IP} \
-e MESOS_WORK_DIR=/var/mesos \
-e MESOS_LOG_DIR=/var/log \
-e MESOS_MASTER=zk://${MESOS_MASTER}:2181/mesos \
-e MESOS_CONTAINERIZERS=docker,mesos \
-e MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins \
-p 5051:5051 \
-v /sys:/sys \
-v /usr/bin/docker:/usr/bin/docker:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /lib64/libdevmapper.so.1.02:/lib/libdevmapper.so.1.02:ro \
justinwatkinson/mesos-slave

Still a work in progress - stay tuned!

Docker Pull Command
Owner
justinwatkinson