It would be nice if the container api payload had support for exposing host devices to the container (like docker run --device does).
The kubelet could pass it go-dockerclient once they add support for it (fsouza/go-dockerclient#241), or create container with the docker remote api by passing an addition member in the /create HostConfig payload:
{
"PathOnHost": "/dev/deviceName",
"PathInContainer": "/dev/deviceName",
"CgroupPermissions": "mrw"
}
It would be nice if the container api payload had support for exposing host devices to the container (like
docker run --devicedoes).The kubelet could pass it go-dockerclient once they add support for it (fsouza/go-dockerclient#241), or create container with the docker remote api by passing an addition member in the
/createHostConfigpayload: