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
If you want to run bluez
from a docker (and not only expose hci
adapter) you need:
sudo docker run --privileged -i -t your_image_name /bin/bash
bluez
is not running on your host. In my case I add to kill bluez
(killall -9 bluetoothd
) (and not stopped it properly as it will power down my bluetooth adapter and will not exposed it into the docker)dbus
(/etc/init.d/dbus start
) and bluez
(/usr/libexec/bluetooth/bluetoothd --debug &
)