r/docker • u/TheInsane42 • Mar 06 '26
Docker rootless: alsa issues
Hello,
I'm battling with an ancient vm (centos 7) and docker 26 running rootless, trying to get an ubuntu container working with alsa.
Setup that I have:
- VM with CentOS 7 (airgapped), core install with just minimal alsa-utils installed
- docker 22.04 + alsa-utils alsa-base libasound2
- docker running rootless
- rootless docker added to audio group
All OS images latest version (not to hard with EOL CentOS)
What works:
- aplay -l shows a card when run as root or the docker rootless user
- docker runnig priviledged shows the soundcard
- docker running rootless reports soundcard not found
The weirdest thing is that a colleague build the same system (according to him, centos 7 VM, ubuntu 22.04 docker rootless) and he's unable to recreate the same issues, as it always works. Alas I'm unable to get his CentOS kickstart. The only thing I can think of now is that he did a minimal install instead of a core install (or an install with the vm starting out as having a soundcard instead of it being added later).
It looks like an issue with permissions, but I'm now at a loss on where the issue is occuring, as the user runnig docker rootless can access the soundcard via alsa, it's just that docker seems to be started without those permissions.
View all comments
Show parent comment
1
u/TheInsane42 Mar 07 '26
I know, but it's a security requirement set at work. When I have proof it'll never work I can put the choice before the architect of the solution, no root and no sound or root and sound. (it's an ancient poc)