0

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

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

1 Answer 1

0

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.

You must log in to answer this question.

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