mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 845 forks source link

marathon app json can't support dynamic values in double string #3919

Closed xiaods closed 8 years ago

xiaods commented 8 years ago
"parameters": [
      {
        "key": "add-host",
        "value": "localhost:$HOST"
      }
    ],

i need add a slave ip to docker daemon, but when i scaling the app instance, the ip is need dynamic ip. so how can i do that?anyone can do me a favor to answer the question?

xiaods commented 8 years ago

currently marathon only accept $HOST as a literal string.

gkleiman commented 8 years ago

You can use the MARATHON_HOST env variable to get the slave's host name.