Description
When I try to run container with command:
docker run -it --device=/dev/sdc4:/dev/xvdc --privileged ubuntu /bin/bash
There is supposed to have device /dev/xvdc inside the container, but I just saw device /dev/sdc4.
When I removed the --privileged option,I can find device /dev/xvdc exists.
Steps to reproduce the issue
Run container with --device and --privileged option
Describe the results you expected
When run container with option --device and --privileged option, can see the specified device inside the container
Docker version
1.12.6
Description
When I try to run container with command:
docker run -it --device=/dev/sdc4:/dev/xvdc --privileged ubuntu /bin/bashThere is supposed to have device /dev/xvdc inside the container, but I just saw device /dev/sdc4.
When I removed the
--privilegedoption,I can find device/dev/xvdcexists.Steps to reproduce the issue
Run container with
--deviceand--privilegedoptionDescribe the results you expected
When run container with option
--deviceand--privilegedoption, can see the specified device inside the containerDocker version
1.12.6