From 66c349a0db5f494aaa9df7ca50d10aa1d8fcb82e Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 11 Dec 2015 14:42:37 +0000 Subject: [PATCH] advertise moby hostname not always docker.local. Signed-off-by: Justin Cormack --- alpine/etc/init.d/mdnstool | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/alpine/etc/init.d/mdnstool b/alpine/etc/init.d/mdnstool index 93acbd942..1faf613a2 100755 --- a/alpine/etc/init.d/mdnstool +++ b/alpine/etc/init.d/mdnstool @@ -14,12 +14,14 @@ start() [ -n "${PIDFILE}" ] || PIDFILE=/var/run/mdnstool.pid + HOSTNAME=$(hostname -s).local. + # start-stop-daemon --start --quiet \ # --exec /sbin/mdnstool \ # --pidfile "${PIDFILE}" \ -# -- if eth0 +# -- if eth0 -hostname ${HOSTNAME} # eend $? "Failed to start mDNS server" - /sbin/mdnstool if eth0 -detach & + /sbin/mdnstool if eth0 -hostname ${HOSTNAME} -detach & } stop()