Mesos Marathon(ctl)调试 - "异常执行程序终止:未知容器"

时间:2017-11-15 06:47:27

标签: docker mesos marathon

我还是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
    }
  ]
}

我用来部署Marathon应用程序的命令:

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

0 个答案:

没有答案