docker outputs to standard out with added carriage return character · Issue #8513 · moby/moby

Running docker run -ti --rm ubuntu:12.04 cat /etc/passwd >passwd.txt will result in a passwd file with added carriage return character at the end of each line. What is the rationale of this behavio...