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 :)

  • You may find some answers in post1 or post2.
    – harrymc
    Jul 14 '19 at 20:10
  • Have you tried any of the methods in the links?
    – harrymc
    Jul 18 '19 at 5:45

I've had a similar issue recently and solution for me was running docker container in privileged mode with --privileged=true parameter. Not sure if it is also a solution for this one, but you may give it a try.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.