From 9966ea5d6396ef3a27b5b2ec281760ce3721b178 Mon Sep 17 00:00:00 2001 From: JustMe Date: Wed, 7 Oct 2026 17:20:08 +0800 Subject: [PATCH] fix: run the enrollment container on the host network [CI SKIP] --- packaging/container/deploy-node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/container/deploy-node.sh b/packaging/container/deploy-node.sh index 4308f4b..c70563e 100644 --- a/packaging/container/deploy-node.sh +++ b/packaging/container/deploy-node.sh @@ -125,7 +125,7 @@ else ID_DIR="/etc/moshiro/$ROLE-id" if ! in_volume "test -f $ID_DIR/node.json" &2; exit 1; } - "$ENGINE" run --rm --pull=never -v "$V_CFG:/etc/moshiro" --entrypoint /usr/local/bin/fleet-enroll "$IMAGE" \ + "$ENGINE" run --rm --pull=never --network host -v "$V_CFG:/etc/moshiro" --entrypoint /usr/local/bin/fleet-enroll "$IMAGE" \ --server "$SERVER" --join "$JOIN" --name "$NAME" --identity-dir "$ID_DIR" fi fi