It would be very useful to be able to use mesos task IDs in context of docker labels. This would enable users to query containers by mesos task id and find the container they are looking for:
Docker labels can also be utilized to map logs to mesos tasks:
When shipping container logs with filebeat, container labels are used to tag loglines. To have mesos task id as a container label would allow one-to-one mapping between log lines and mesos tasks. This way searching logs of a specific mesos task would be a breeze.
Application definition file to illustrate the idea: