mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
advertise moby hostname not always docker.local.
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
88858f855c
commit
66c349a0db
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user