You can query the slave's state.json to get the container ID. See the previous thread: http://search-hadoop.com/m/0Vlr6OtCiO1p8ypc2/mesos+accessing+programmattically&subj=Re+Accessing+stdout+stderr+of+a+task+programmattically+
On Fri, Jun 12, 2015 at 2:35 AM, Olivier Sallou <olivier.sal...@irisa.fr> wrote: > Hi, > how can we get the container id when executing a TaskInfo with a Docker > ContainerInfo ? > > Mesos execute a Docker container with name mesos-xxx but how can we get > this identifier ? > > I set in my TaskInfo a unique id in Task Id, but itis not used as Docker > identifier. > > I need it to query cAdvisor, running on my nodes. > > Thanks > > Olivier > > -- > > > gpg key id: 4096R/326D8438 (keyring.debian.org) > Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 > >