If the container shuts down uncleanly, a PID file is left in /var/run/avahi-daemon/pid
This file prevents avahi from starting, and the container restarts indefinitely.
I've observed this happens when my server reboots (which I've raised the shutdown timeout to 120s to help mitigation), and when I kill the container.
I tried both of these lines in my docker-compose file which didn't help.
entrypoint: ["rm","-f","/var/run/avahi-daemon/pid"]
command: rm -f /var/run/avahi-daemon/pid
Would you be able to alter the entrypoint/startup scripts in the container to remove an existing pid file?
Hi there. Thanks for making this.
If the container shuts down uncleanly, a PID file is left in
/var/run/avahi-daemon/pid
This file prevents avahi from starting, and the container restarts indefinitely.
I've observed this happens when my server reboots (which I've raised the shutdown timeout to 120s to help mitigation), and when I kill the container.
I tried both of these lines in my docker-compose file which didn't help. entrypoint: ["rm","-f","/var/run/avahi-daemon/pid"] command: rm -f /var/run/avahi-daemon/pid
Would you be able to alter the entrypoint/startup scripts in the container to remove an existing pid file?