Accessing Bluetooth dongle from inside Docker?

前端 未结 4 752
逝去的感伤
逝去的感伤 2021-02-08 02:29

Is it possible to use a bluetooth (BLE in my case) dongle inside of a docker container?

On my host machine:

$ hcitool dev
    Devices:
       hci0   5C:F         


        
4条回答
  •  逝去的感伤
    2021-02-08 02:56

    With help from Docker Community, I have Successfully Started DBus/Bluetooth Services inside docker container and scan bluetooth devices by adding --cap-add=SYS_ADMIN, --cap-add=NET_ADMIN and --net=host flags/permission

    docker run --cap-add=SYS_ADMIN --cap-add=NET_ADMIN --net=host -it debian:jessie

    Now just looking to start bluetooth service by "Not sharing the Host Networking Namespace" (customising --net=host to private network)

    If somebody got any Clue, that would be helpful. Thanks.

提交回复
热议问题