akbennett / lava-docker

Deploying LAVA in a docker image
6 stars 9 forks source link

Container runs in privileged mode #4

Open akbennett opened 8 years ago

fboudra commented 8 years ago

As long as you need to access to host devices (e.g. USB), you need to run in privileged mode or use a fine-grained configuration: https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities

This bug looks to me either a wontfix or provide a better documentation on how to fine-grain configure docker for LAVA use cases.

IMO, a better approach would be to deny direct access to devices and recommend to use "bridge" tools like ser2net or adb over tcp, which rely on networking and would be easier to configure.