commit | 40601a6a13872774d9bb7a6701e36481e1799ef7 | [log] [tgz] |
---|---|---|
author | Bartosz Kupidura <bkupidura@mirantis.com> | Fri Dec 08 15:16:18 2017 +0100 |
committer | Bartosz Kupidura <bkupidura@mirantis.com> | Fri Dec 15 09:11:30 2017 +0000 |
tree | 94b1cd6f6aea52896a71f42133a3444fef78319f | |
parent | 8fef373a34febb52f7561b62b65c06a66fec965d [diff] [blame] |
Pass labels from docker containers to logs Closes-Bug: PROD-16326 Change-Id: Icdc43f74aad50e5ec0543bab6ba8f2619004bae9
diff --git a/docker/swarm/master.yml b/docker/swarm/master.yml index fba9af3..d327796 100644 --- a/docker/swarm/master.yml +++ b/docker/swarm/master.yml
@@ -7,3 +7,7 @@ swarm: role: master advertise_addr: ${_param:single_address} + host: + options: + log-opts: + labels: "com.docker.stack.namespace,com.docker.swarm.service.name,com.docker.swarm.task.name"