-
Notifications
You must be signed in to change notification settings - Fork 0
docker_mesos_cmd
李志强 edited this page May 19, 2017
·
3 revisions
docker run -d \
-e MYID=1 \
-p 2181:2181 \
-p 2888:2888 \
-p 3888:3888 \
-e SERVERS=0.0.0.0 \
--name=zookeeper_t \
--net=host \
--restart=always \
mesoscloud/zookeeper
docker run -d \
--net=host \
-e MESOS_HOSTNAME=${HOST_IP} \
-e MESOS_IP=${HOST_IP} \
-e MESOS_QUORUM=1 \
-e MESOS_ZK=zk://${HOST_IP}:2181/mesos \
--name mesos-master \
--restart always \
mesoscloud/mesos-master
docker run -d \
--net host \
-e MARATHON_HOSTNAME=${HOST_IP} \
-e MARATHON_HTTPS_ADDRESS=${HOST_IP} \
-e MARATHON_HTTP_ADDRESS=${HOST_IP} \
-e MARATHON_MASTER=zk://${HOST_IP}:2181/mesos \
-e MARATHON_ZK=zk://${HOST_IP}:2181/marathon \
--name marathon \
--restart always \
mesoscloud/marathon
docker run -d \
--net host \
-e MESOS_HOSTNAME=${HOST_IP} \
-e MESOS_IP=${HOST_IP} \
-e MESOS_MASTER=zk://${HOST_IP}:2181/mesos \
-v /sys/fs/cgroup:/sys/fs/cgroup \
-v /var/run/docker.sock:/var/run/docker.sock \
--name mesos-slave-2 \
--restart always \
--privileged \
mesoscloud/mesos-slave
docker run -d \
-e CHRONOS_HTTP_PORT=4400 \
-e CHRONOS_MASTER=zk://${HOST_IP}:2181/mesos \
-e CHRONOS_ZK_HOSTS=${HOST_IP}:2181 \
--name chronos --net host --restart always mesoscloud/chronos