mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
vsudd: start vsudd on Windows against a GUID
Using 23a432c2-537a-4291-bcb5-d62504644739 as the GUID (randomly generated). The Windows host side will uses this as service ID, once written. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
89e8ac2612
commit
f279329456
@ -11,6 +11,12 @@ start()
|
|||||||
{
|
{
|
||||||
ebegin "Starting docker socket vsock passthrough"
|
ebegin "Starting docker socket vsock passthrough"
|
||||||
|
|
||||||
|
if [ -d /sys/bus/vmbus ]; then
|
||||||
|
PORT=23a432c2-537a-4291-bcb5-d62504644739
|
||||||
|
else
|
||||||
|
PORT=2376
|
||||||
|
fi
|
||||||
|
|
||||||
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/vsudd.pid
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/vsudd.pid
|
||||||
[ -n "${LOGFILE}" ] || LOGFILE=/var/log/vsudd.log
|
[ -n "${LOGFILE}" ] || LOGFILE=/var/log/vsudd.log
|
||||||
|
|
||||||
@ -19,7 +25,7 @@ start()
|
|||||||
--exec /sbin/vsudd \
|
--exec /sbin/vsudd \
|
||||||
--make-pidfile --pidfile ${PIDFILE} \
|
--make-pidfile --pidfile ${PIDFILE} \
|
||||||
--stderr "${LOGFILE}" --stdout "${LOGFILE}" \
|
--stderr "${LOGFILE}" --stdout "${LOGFILE}" \
|
||||||
-- -port 2376 -sock /var/run/docker.sock
|
-- -port "${PORT}" -sock /var/run/docker.sock
|
||||||
|
|
||||||
eend $? "Failed to start vsudd"
|
eend $? "Failed to start vsudd"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user