Bluez5 and PulseAudio in a docker for recieve and send sound via a2dp
This is a fork of kvaps/pulseaudio-bluetooth with SSP mode enabled (as some devices, particularly older ones, don't support disabling it). This means that instead of configuring a static PIN, on first pairing you will be asked to confirm a randomly generated PIN. This bluetooth server is configured to accept any pairing attempt automatically.
Run command:
docker run \
--device /dev/bus/usb \
--device /dev/snd \
--name bluez \
--net=host \
--cap-add NET_ADMIN \
-v /opt/bluetooth:/var/lib/bluetooth \
-e NAME="Some-bluetooth" \
-e DEVICE="40:EF:4C:C3:9C:CE" \
cdauth/a2dp-server
docker-compose.yml
pulseaudio-bluetooth:
restart: always
image: cdauth/a2dp-server
devices:
- /dev/bus/usb
- /dev/snd
net: host
cap_add:
- NET_ADMIN
volumes:
- /etc/localtime:/etc/locialtime:ro
- ./bluetooth:/var/lib/bluetooth
environment:
- NAME=Some-bluetooth
- DEVICE=40:EF:4C:C3:9C:CE
Notes:
hciconfig.Content type
Image
Digest
Size
188.2 MB
Last updated
over 9 years ago
docker pull cdauth/a2dp-server