Docker currently supports getting logs from a container that logs to stdout/stderr.
Everything that the process running in the container writes to
stderr docker will
json and store in a file on the host machine's disk which you can then
retrieve with the
docker logs command.
This is handy but it has its drawbacks because you don't get any log rotation and the file
size of the collected logs can become an issue as it eats up your host's disk space. Not to mention
the fact that every time you run
docker logs container_id you get all the logs of that processes from
While there are some interesting things being discussed on the docker-dev mailing list, I wanted to see if I could get docker to play along with proven logging systems out there with the functionality I have now.