Add --device flag to allow additional host devices in container#6961
Merged
vieux merged 1 commit intomoby:masterfrom Jul 11, 2014
Merged
Add --device flag to allow additional host devices in container#6961vieux merged 1 commit intomoby:masterfrom
vieux merged 1 commit intomoby:masterfrom
Conversation
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 [email protected] (github: dineshs-altiscale) and so he deserves a ton of credit. Docker-DCO-1.1-Signed-off-by: Timothy <[email protected]> (github: timthelion)
Contributor
Author
|
LGTM |
1 similar comment
Contributor
|
LGTM |
vieux
added a commit
that referenced
this pull request
Jul 11, 2014
Add --device flag to allow additional host devices in container
Contributor
|
@fredlf @jamtur01 sorry for merging this, @crosbymichael tricked me. I thought you already validated in #6134 like @SvenDowideit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 [email protected] (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 [email protected] (github: timthelion)