I'm using various docker containers which, under the covers are built on Debian sid. These images lack /dev/snd
and /dev/snd/seq
, which pretty much makes sense since they have no hardware audio card.
Several pieces of software I'm using to generate MIDI files require these sequencer devices to be present. They're not necessarily used to send out audio, but the code itself dies in init if the sound devices do not exist. To be clear, I don't need to generate an audio signal within docker, rather I just need these to exist to make other software happy.
So far, what I've tried is endlessly installing various alsa packages (alsa-utils
, alsa-oss
, and others) and trying to modprobe
my way out of this, all with no luck.
Within a docker container, what needs to happen to have valid audio devices even if dummy?
/dev/snd
from host blog.jessfraz.com/post/docker-containers-on-the-desktop – Sophisticated--device /dev/snd
elsewhere, but this guidance is from 2015, and the official docker docs don't mention that --device is a valid option, I think this was deprecated/removed. – Sidwell--device /dev/snd/seq:/dev/snd/seq
work? – Joule/dev/bus/usb
to the docker container and it could have its own software to interpret the usb device as the audio device it needs. – Vassilytouch /dev/snd
? How about if you instead make a dummy character device, for example by usingmknod /dev/snd c 89 1
? If these commands do no work, then what errors do they raise? – Kt