You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc Roos <M....@f1-outsourcing.eu> on 2020/08/05 11:32:17 UTC
Error "networkNames must be a single item list when hostPort is specified and more than 1 container network is defined"
I am getting this error message. When launching a task with portMappings
and two container networks. What is the proper way to configure this?
general: networkNames must be a single item list when hostPort is
specified and more than 1 container network is defined
"networks": [
{ "mode": "container", "name": "cni-storage" },
{ "mode": "container", "name": "cni-apps-public", "labels":
{"vendorid": "ext-testing"}}
],
"container": {
"type": "MESOS",
"portMappings": [
{"hostPort": 0, "name": "health", "protocol": "tcp"},
{"hostPort": 0, "name": "metrics", "protocol": "tcp"}
]
}
[1]
https://jira.d2iq.com/browse/MARATHON-8760