dotcloud/docker — pull request #1757 by heavenlyhash (2013-08-31 21:24:16+00:00)
Title: Add support for mounting individual files from the host.

Add support for mounting individual files from the host.

The core ability was already there in the lxc template as evident from mounting things like resolv.conf, so no changes there. This just touches up the bit of container setup that makes sure mount points exist inside the container to make a file for files and a directory for directories.

This involves docker checking the host filesystem to see whether the mount parameter refers to a file or directory, and so has the sideeffect that missing mount locations on the host are now grounds for an error from docker. (Previously this went unremarked upon until lxc died, and the error message ended up in the container logs instead of being reported to the terminal that ran docker.)