How Docker crashes itself by logging to stdout

About

I had a docker process running on a small box, where the main application was logging quite heavily to stdout. Suddenly, after a certain period of time, the docker process would die.

Reproduce

See the github project https://github.com/zoobab/dockercrash