Join GitHub today
mapping only some host devices to container #37607
Expected result : 'ls -la' inside docker should return my_device in list
Actual result: device /dev/my_device is not present on container file system at all. Instead, if we create and run container via 'docker run' on host we will obtain rather simplified list of devices like this:
drwxr-xr-x 5 root root 340 Aug 7 03:40 .
but if we create container via POST request with nonempty device list then we will obtain a full list of 'regular devices' from host.
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.): host is a physical system with ubuntu 16.04
And yes... It shouldn't be the same as #20228, i don't want add devices to docker container directly once we have appropriate option in json.
The device option allows a container to access a device - it will still have to be mounted (
If the source on the host is a mounted device, using the
Regarding other devices; by default, a container only has very limited access, so that's expected