标签:docke bsp 3.1 system ast name doc support reg
Launch Mesos-Slave
docker run -d \
-e MESOS_HOSTNAME=192.168.253.160 \
-e MESOS_IP=192.168.253.160 \
-e MESOS_MASTER=zk://192.168.253.159:2181/mesos \
-e MESOS_LOG_DIR=/var/log/mesos \
-e MESOS_WORK_DIR=/var/tmp/mesos \
-v "$(pwd)/log/mesos:/var/log/mesos" \
-v "$(pwd)/work/mesos:/var/tmp/mesos" \
-v /sys/fs/cgroup:/sys/fs/cgroup \
-v /var/run/docker.sock:/var/run/docker.sock \
--name slave --net host --privileged --restart always \
mesosphere/mesos-slave:1.7.0 --no-systemd_enable_support
Launch Mesos-Master
docker run -d --net=host \
-e MESOS_PORT=5050 \
-e MESOS_ZK=zk://127.0.0.1:2181/mesos \
-e MESOS_QUORUM=1 \
-e MESOS_REGISTRY=in_memory \
-e MESOS_LOG_DIR=/var/log/mesos \
-e MESOS_WORK_DIR=/var/tmp/mesos \
-v "$(pwd)/log/mesos:/var/log/mesos" \
-v "$(pwd)/tmp/mesos:/var/tmp/mesos" \
mesosphere/mesos-master:1.7.0
标签:docke bsp 3.1 system ast name doc support reg
原文地址:https://www.cnblogs.com/baylorqu/p/10249816.html