dotcloud/docker — pull request #6573 by mheon (2014-06-20 16:38:30+00:00)
Title: Escape control and nonprintable characters in docker ps

At present, docker ps will literally interpret any control characters in the command when printing - for example, a \n in the command will actually print a newline in the output of docker ps. This makes things less readable for the user, especially when newlines are involved. It could also potentially be used to hide information from docker ps through the use of the backspace sequence (\b). This patch escapes control sequences to remove this potential issue.