I am trying to configure a dummy sound card in a Debian docker container.
Unfortunately the documentation I find on the internet is incomplete and old.
I was mainly looking at this post on reddit and this post on superuser.
For starters, installing alsa-base
:
- jessie/alsa-base - says it's dummy empty package and functionality ships with kmod
- debian/sound - long list of alsa-related packages, but no alsa-base
, again - most alsa packages depend on kmod
.
So I decided I may start with something like so:
FROM debian:stretch-slim
USER root
RUN apt-get update && apt-get install -y kmod
RUN touch /etc/modprobe.d/myalias.conf
RUN echo "alias char-major-116 snd" >> /etc/modprobe.d/myalias.conf
RUN echo "alias snd-card-0 snd-dummy" >> /etc/modprobe.d/myalias.conf
RUN modprobe snd-dummy
But at the point of doing modprobe I am getting:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.125-linuxkit/modules.dep.bin'
modprobe: FATAL: Module snd-dummy not found in directory /lib/modules/4.9.125-linuxkit
Any advice on what am I missing? Thanks :)