dotcloud/docker — pull request #6961 by crosbymichael (2014-07-10 18:55:18+00:00)
Title: Add --device flag to allow additional host devices in container

We add a --device flag which can be used like:

docker run --device /dev/sda:/dev/xvda:rwm ubuntu /bin/bash

To allow the container to have read write permissions to access the host's /dev/sda via a node named /dev/xvda in the container.

Note: Much of this code was written by Dinesh Subhraveti dineshs@altiscale.com (github: dineshs-altiscale) and so he deserves a ton of credit.

This is a rebase of #6134

Closes #6134

Docker-DCO-1.1-Signed-off-by: Timothy (github: timthelion)