
This syslog configuration is what sends any logs with a program-name of "docker-<foo>" to /var/log/containers/foo.log. However, at 98- level the rules are after the default 50- rules, so we're seeing the logs copied to both syslog and /var/log/containers. Since this contains a "stop" command, we should move this earlier before the default rules and the docker logs will not be duplicated. Change-Id: I0cbcd4694a4796573fe48383756be03597d2da0f
An ansible role to install docker in the OpenStack infra production environment
This also installs a log redirector for syslog `docker-
tags. For most containers, they can be setup in the compose file with a
section such as:
logging:
driver: syslog
options:
tag: docker-<appname>
Role Variables