User mode (--user
)
#372
Replies: 4 comments
-
And pulse audio version:
Contents of pulse-client.conf:
Notice there is no Make sure that the path you mount for /db and /log are writable by the uid/gid of your choice. If the path /db and /log are not writable, the container will write to /tmp/db and /tmp/log respectively. |
Beta Was this translation helpful? Give feedback.
-
I read over the readme:
I'm not sure what the words 'mandatory' and 'enforced' are in this context. Running systemd --system mpd to pipewire-pulse is quite straightforward. Create a pulse output, e.g.:
Use the pipewire-pulse native tcp module to go get the stream:
The same applies to another machine on the network, e.g., my laptop at 192.168.1.3:
So since both of these work with bare-metal mpd, I would think that it would be trivial to do with a docker, no? Various information is available about how to secure the connection, e.g., but I've never been clear how this is relevant inside a LAN I control—and if someone else is listening to my mpd instance, great. |
Beta Was this translation helpful? Give feedback.
-
Hello, about the "mandatory" and "enforced" terms, let me try to clarify:
If these are not the most appropriate terms, please suggest, and I will gladly update the documentation. About configuration, it seems to me that all the options are covered by the variables in this section. The other things you mention, like loading modules, should be done on the host system, or am I wrong? Let me know if this helps! |
Beta Was this translation helpful? Give feedback.
-
Hello, starting 2023-12-19, we have initial support for running the container in docker user mode.
At the moment, it is supported without pulseaudio outputs. For those it will be needed to provide some files as mount points, and it's something for another day.
Here is a working example with alsa output:
Make sure that the path you mount for /db and /log are writable by the uid/gid of your choice.
The group id should be the host 'audio' group if you want to use alsa outputs.
If the path /db and /log are not writable, the container will write to /tmp/db and /tmp/log respectively.
Beta Was this translation helpful? Give feedback.
All reactions