lukechilds / dockerpi

A Virtualised Raspberry Pi inside a Docker image
MIT License
1.85k stars 191 forks source link

mapping the /dev/snd to pass through sound #49

Open marc-portier opened 2 years ago

marc-portier commented 2 years ago

thx for this useful container I'm trying to get it to connect to the actual host-speakers to play around with the sound.

I was hoping the trick in https://stackoverflow.com/questions/28985714/run-apps-using-audio-in-a-docker-container would help me

Launching with

$ docker run -ti --rm -v /dev/snd:/dev/snd --privileged lukechilds/dockerpi 

however still produces

pi@raspberrypi$ ls /dev/snd/*
ls: cannot access '/dev/snd/*': No such file or directory

any tips?