docker/docker — pull request #8738 by alexoj (2014-10-23 22:01:02+00:00)
Title: daemon: fix /dev/console getting mknod'd

Fixed setPrivileged() so it won't add /dev/console to the device node
list.

This fixes an issue where containers wouldn't start if
/dev/console is a pts (which is the case when running docker inside
docker), because devpts inodes are special and cannot be created with
mknod: attempting to open the result of doing so will return EIO.

Since later libcontainer would attempt to open the file to mount --bind
over it and fail because of the EIO error, the container wouldn't start
if the /dev/console was a pts, which is the case inside a docker
that was started from a pts.

Signed-off-by: Alejandro Ojeda

--

This patch fixes the following issue in dind: https://github.com/jpetazzo/dind/issues/25
This is my first commit here, hopefully I didn't miss anything important.