Docker Community Forums

Share and learn in the Docker community.

How to add a device to all docker containers


To make use of SGX enclaves applications have to talk to the SGX driver which is exposed via /dev/isgx on the host. We execute such applications inside of Docker containers mapping /dev/isgx inside with the --device command line option.

Is there an option to add an device (/dev/isgx in this case) to any container ever started by a docker engine?