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

Gennady Feldman commented on MESOS-4446:
----------------------------------------

Hi Abhishek,

This is actually what I am trying to get working. It's not working for me. In 
Marathon i set labels (in the labels section, docker section doesn't have 
configuration for this). When I actually login to the Mesos Slave and do 
"docker inspect" the Labels are empty.

I am using Mesos 0.25 and Marathon 0.13.

Looking through the code here: 
https://github.com/apache/mesos/blob/master/src/docker/docker.cpp#L471 you 
notice that labels are not actually passed to docker.

> Please add an ability to set Docker labels based on TaskStatus labels
> ---------------------------------------------------------------------
>
>                 Key: MESOS-4446
>                 URL: https://issues.apache.org/jira/browse/MESOS-4446
>             Project: Mesos
>          Issue Type: Story
>          Components: docker
>            Reporter: Gennady Feldman
>
> So looks like MESOS-3076 added support for Labels to TaskStatus. Would it be 
> possible to pass those onto the docker container?
> This would really help with doing "docker inspect" on the mesos-slave nodes 
> as well as allow us to better collect docker metrics about the 
> tasks/containers that are currently running on the slave.
> docker supports labels out of the box. See here: 
> https://docs.docker.com/engine/userguide/labels-custom-metadata/



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

Reply via email to