docker/docker — pull request #8479 by vishh (2014-10-08 22:07:19+00:00)
Title: Provide Out Of Memory information in container status

Container processes can get killed by the kernel whenever they exceed their memory limit or when the overall memory available in the system is very low. When containers get killed by the kernel, there is no way to figure out if it died due to lack of memory.
To solve this problem, this patch modified docker to Identify out of memory kills inside containers and indicate that as part of the container status string. Since some containers can gracefully handle OOM kills, this patch does not attempt to bring down a container whenever an OOM occurs.

Ping @crosbymichael @vieux
cc @bgrant0607