I have docker container based on arm64v8/ros:humble-ros-base.
When calling hciconfig I get:
root@8f3abe876714:/home/dev# hciconfig
Can't open HCI socket.: Address family not supported by protocol
I supposed it is a problem with mounting some volumes or privileges but I run container with command:
docker run -it -v /etc:/etc -v /var:/var -v /dev:/dev -v /sys:/sys -v /run:/run --privileged --net=host --cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add=SYS_ADMIN <my_image>
Does anybody know what have I forgot about? Is there any other directory that should be mounted in container to allow creating hci sockets inside docker container? Or maybe additional parameters/privileges. When running this command on host it succeeds, problem is only in container.