我有两个节点,每个节点都安装了带有 Mesos、马拉松和 Zookeeper 的 docker。这是我在主节点上的 docker compose 文件:version: '3.7' services: zookeeper: image: ubuntu_mesos_home_marzieh command: /home/zookeeper-3.4.8/bin/zkServer.sh restart environment: ZOOKEEPER_SERVER_ID: 1 ZOOKEEPER_CLIENT_PORT: 2190 ZOOKEEPER_TICK_TIME: 2000 ZOOKEEPER_INIT_LIMIT: 10 ZOOKEEPER_SYNC_LIMIT: 5 ZOOKEEPER_SERVERS: 150.20.11.133:2888:3888;150.20.11.136:2888:3888 network_mode: host expose: - 2190 - 2888 - 3888 ports: - 2190:2190 - 2888:2888 - 3888:3888 master-mesos: image: ubuntu_mesos_home_marzieh command: bash -c "sleep 30; /home/mesos-1.7.0/build/bin/mesos- master.sh --ip=150.20.11.133 --work_dir=/var/run/mesos --hostname=150.20.11.133" privileged: true restart: always network_mode: host depends_on: - zookeeper environment: - LIBPROCESS_IP=150.20.11.133 - MESOS_HOSTNAME="150.20.11.133" - MESOS_QUORUM=1 - MESOS_LOG_DIR=/var/log/mesos - MESOS_WORK_DIR=/var/run/mesos expose: - 5050 - 4040 - 7077 - 8080 ports: - 5050:5050 - 4040:4040 - 7077:7077 - 8080:8080 marathon: image: ubuntu_mesos_home_marzieh command: bash -c "sleep 60; /usr/share/marathon/bin/marathon" privileged: true network_mode: host depends_on: - zookeeper - master-mesos environment: - HOSTNAME="150.20.11.133" - MARATHON_ZK=zk://150.20.11.133:2190/marathon - MARATHON_MASTER=zk://150.20.11.133:2190/mesos - MESOS_NATIVE_JAVA_LIBRARY=/usr/local/lib/libmesos.so - MARATHON_HTTP_PORT=8080 expose: - 8080 - 2190 ports: - 8080:8080 - 2190:2190我在“zoo.cfg”上配置了 Zookeeper,并为每个节点制作了“myid”文件。我还配置了 Mesos 和 Marathon。但是当我在主节点(150.20.11.133)上运行 docker compose 时,我得到了这个错误:我不知道会发生什么。我尝试使用ufw打开每个端口或禁用防火墙,但错误并没有消失。你能告诉我docker compose文件有什么问题吗?任何帮助,将不胜感激。
添加回答
举报
0/150
提交
取消