Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for host devices #241

Closed
proppy opened this issue Mar 18, 2015 · 2 comments
Closed

add support for host devices #241

proppy opened this issue Mar 18, 2015 · 2 comments

Comments

@proppy
Copy link
Contributor

proppy commented Mar 18, 2015

It would be nice if the HostConfig in CreateContainerOptions had support for exposing host devices to the container (like docker run --device does).

This could be passed as an additional member of the HostConfig when calling the /containers/create API method:

{
    "PathOnHost": "/dev/deviceName",
    "PathInContainer": "/dev/deviceName",
    "CgroupPermissions": "mrw"
}
@fsouza
Copy link
Owner

fsouza commented Mar 18, 2015

Hi @proppy, thanks for reporting! I will push this feature within the next few minutes. I will add a type named Device with the attributes you described, and add a slice of Devices in the HostConfig struct.

@fsouza fsouza closed this as completed in e4fcc92 Mar 18, 2015
@proppy
Copy link
Contributor Author

proppy commented Mar 19, 2015

Thanks for the quick update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants