1

I am trying to play and then record audio using ALSA inside a docker container, based on Ubuntu 16.04. Starting with a fresh container, I've tried following the example found in the official ALSA documentation on the loopback device, and using QXIP/baresip-docker as a starting point, but whenever I run arecord -L, I get the following message:

arecord: device_list:268: no soundcards found...

How can I initiate a loopback audio system inside a docker container?

1 Answer 1

3

You need to pass the required devices using the --device directive to docker run:

docker run --device=/dev/snd:/dev/snd

This makes devices under /dev/snd/* available to the container. Good luck!

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .