mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +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
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/mdnstool.pid
|
||||||
|
|
||||||
|
HOSTNAME=$(hostname -s).local.
|
||||||
|
|
||||||
# start-stop-daemon --start --quiet \
|
# start-stop-daemon --start --quiet \
|
||||||
# --exec /sbin/mdnstool \
|
# --exec /sbin/mdnstool \
|
||||||
# --pidfile "${PIDFILE}" \
|
# --pidfile "${PIDFILE}" \
|
||||||
# -- if eth0
|
# -- if eth0 -hostname ${HOSTNAME}
|
||||||
# eend $? "Failed to start mDNS server"
|
# eend $? "Failed to start mDNS server"
|
||||||
/sbin/mdnstool if eth0 -detach &
|
/sbin/mdnstool if eth0 -hostname ${HOSTNAME} -detach &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user