CloudBrewery / docrane

Docker container manager that relies on etcd to provide relevant configuration details. It watches for changes in configuration and automatically stops, removes, recreates, and starts your Docker containers.
MIT License
8 stars 2 forks source link

Add support for container logging config #25

Closed karlrl closed 8 years ago

karlrl commented 8 years ago

To modify a container's log config, set its "log_config" key to a dictionary with keys "type" (for the type of logging driver) and "config" (for any extra configuration the logging driver might need).

E.g. docrane would pick up the following config and start logging using the GELF driver:

etcdctl set /docrane/example_containter/log_config \
  '{"type": "gelf", "config": {"gelf-address":"udp://host:8201"}}'
swat30 commented 8 years ago

LGTM :+1: