Docker GELF driver env option Docker GELF driver env option docker docker

Docker GELF driver env option


I had the same issue and answered it here: https://stackoverflow.com/a/40182515/701260

When you use --log-opt env=dev, it will retrieve the variable dev from environment and include it in the event eg. dev: <val-from-env.

Labels do the same with docker labels.