I have built a Go Bluetooth low-energy application that can read data from Xiaomi Mi Flora sensors, and it's working great. Now I wanted to containerize it, but I'm failing. From within the container, I can trigger Bluetooth scans with
hcitool scan
but when I run the Go app, it throws
can't init hci: no devices available: (hci0: can't down device: operation not permitted
I have started the container with the following command.
docker run -it -v $PWD/config.yaml:/config.yaml --privileged --net=host miflora-go
Has anyone ever tried something similar?