mesos marathon(ctl)调试-“异常执行器终止:未知容器”

y1aodyip  于 2021-06-26  发布在  Mesos
关注(0)|答案(0)|浏览(178)

我对mesos还是个新手,但我正在尝试找出调试我正在尝试开发的mesos应用程序的最佳方法。我通过web应用程序收到错误消息“异常执行器终止:未知容器”,并且不确定如何获得更具描述性的错误消息来找出发生了什么。错误消息似乎表明它找不到docker映像,但我知道它引用的是已安装并正在运行的正确映像。

{
  "id": "pgprimary",
  "cmd": null,
  "cpus": 1,
  "mem": 128,
  "disk": 0,
  "instances": 1,
  "container": {
    "docker": {
      "image": "example/postgres:centos7-10.0-1.6.0",
      "network": "BRIDGE",
      "parameters": [{
    "key": "hostname",
    "value": "pgprimary"
    }],
      "portMappings": [
      ]
    },
    "type": "DOCKER",
    "volumes": [
      {
        "hostPath": "/mnt/nfsfileshare/pgdata",
        "containerPath": "/pgdata",
        "mode": "RW"
      }
    ]
  },
  "env": {
    "PG_MODE": "primary",
    "PG_USER": "testuser",
    "PG_PASSWORD": "testuser",
    "PG_DATABASE": "userdb",
    "PG_ROOT_PASSWORD": "password",
    "PG_PRIMARY_USER": "primaryuser",
    "PG_PRIMARY_PASSWORD": "password",
    "PG_PRIMARY_PORT": "5432"
  },
  "labels": {},
  "healthChecks": [
    {
      "protocol": "COMMAND",
      "command": {
        "value": "/usr/pgsql-10/bin/pg_isready --host=pgprimary.marathon.mesos"
      },
      "gracePeriodSeconds": 300,
      "intervalSeconds": 60,
      "timeoutSeconds": 20,
      "maxConsecutiveFailures": 3,
      "ignoreHttp1xx": false
    }
  ]
}

我用来部署马拉松应用程序的命令:

marathonctl -h http://10.0.2.15:8080 app create postgres.json

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题