> I'm trying to do some log disambiguation and it would be handy if I could inject a custom string into the name.
If you want inject inside container, the name stored in MESOS_CONTAINER_NAME. If you want inject outside, you could get it by /state endpoint. The container name is combined by DOCKER_NAME_PREFIX + slaveId + DOCKER_NAME_SEPERATOR + containerId. On Thu, Feb 11, 2016 at 7:09 PM, tommy xiao <[email protected]> wrote: > Hi Ed, > > the prefix name is defined in docker.hpp, > > ``` > > 77 const string DOCKER_NAME_PREFIX = "mesos-"; > > ``` > > if you have more concerns on the request, please file a issue to > discussion. > > > > 2016-02-11 7:34 GMT+08:00 Edward Burns <[email protected]>: > >> Hello Mesosphere, >> >> I have a newbie question. Looking at [1] I see: >> >> Doc> The Docker Containerizer launches all containers with the mesos- >> Doc> prefix plus the slave id (ie: mesos-slave1-abcdefghji), and also >> Doc> assumes all containers with the mesos- prefix is managed by the >> Doc> slave and is free to stop or kill the containers. >> >> Is there some way to customize that prefix? I'm trying to do some log >> disambiguation and it would be handy if I could inject a custom string >> into the name. >> >> Thanks, >> >> Ed >> >> -- >> | [email protected] | office: +1 407 458 0017 >> >> >> [1] http://mesos.apache.org/documentation/latest/docker-containerizer/ >> > > > > -- > Deshi Xiao > Twitter: xds2000 > E-mail: xiaods(AT)gmail.com > -- Best Regards, Haosdent Huang

