With the latest docker image, owntone didn't start because avahi-daemon failed to start.
And after adding "--no-drop-root" to command_args_background in /etc/init.d/avahi-daemon and mount /var/run/dbus/system_bus_socket, it became functional.
I'm using docker on Arch Linux and hope this will help someone who has the same issue.
/etc/init.d/avahi-daemon
#!/sbin/openrc-run
name="${RC_SVCNAME}"
description="Avahi Daemon"
pidfile="/run/${RC_SVCNAME}/pid"
dbussocket="/run/dbus/system_bus_socket"
command="/usr/sbin/avahi-daemon"
command_args_background="-D --no-drop-root"
start_pre() {
if [ ! -S "${dbussocket}" ]; then
sleep 15
start_pre
fi
return 0
}
depend() {
before netmount nfsmount
use net
need dbus
}
I don't face any of these problems and I'm also running it on Arch Linux.
As you are on Arch Linux, my recommendation would be to use podman with systemd quadlets to run your containers.
With the latest docker image, owntone didn't start because avahi-daemon failed to start. And after adding "--no-drop-root" to command_args_background in
/etc/init.d/avahi-daemon
and mount/var/run/dbus/system_bus_socket
, it became functional. I'm using docker on Arch Linux and hope this will help someone who has the same issue./etc/init.d/avahi-daemon
docker-compose.yaml