[ 
https://issues.apache.org/jira/browse/MESOS-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15234513#comment-15234513
 ] 

Jesada Gonkratoke commented on MESOS-5151:
------------------------------------------

Hi, Greg Mann
Thank you for your fast respond, in my case, I want to use marathon for scaling 
new docker container and each container must be connected itself with service 
discovery (Consul) which is running on its docker host so I need to pass 
current host's ip like I can add hostname of host to docker container in docker 
cli mode such as docker run -d -ti --name="test" --add-host 
"dockerhost:$(hostname -i)" centos:7.2 but I cannot do this on Marathon. I 
think this is important because when we need to run docker container in the 
flexible way, this becomes a blocker and another case, I need to ingest log 
from each container to fluentd with unique identifier id like I can do with 
docker cli such as docker run --log-driver=fluentd --log-opt 
fluentd-tag=docker.{{.ID}} ubuntu echo "...". I cannot do like this on marathon 
as well.

So now, I am the promoter for Mesos solution in my company, so I want to ensure 
that Mesos Team can help me for flexibility.


Best Regards,
Jesada Gonkratoke

> Marathon Pass Dynamic Value with Parameters Resource in Docker Configuration
> ----------------------------------------------------------------------------
>
>                 Key: MESOS-5151
>                 URL: https://issues.apache.org/jira/browse/MESOS-5151
>             Project: Mesos
>          Issue Type: Wish
>          Components: docker
>    Affects Versions: 0.28.0
>         Environment: software
>            Reporter: Jesada Gonkratoke
>
> "parameters": [
>        { "key": "add-host", "value": "dockerhost:$(hostname -i)" }
>       ]
>     },
> # I want to add dynamic host ip



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to