hackerrun 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/cluster.ts +6 -9
package/package.json
CHANGED
package/src/lib/cluster.ts
CHANGED
|
@@ -412,13 +412,11 @@ systemctl restart docker
|
|
|
412
412
|
sleep 3
|
|
413
413
|
|
|
414
414
|
# Step 4: Recreate uncloud network with IPv6 enabled
|
|
415
|
-
# Must stop containers first - can't remove network while containers are attached
|
|
416
415
|
CONTAINERS=$(docker ps -aq --filter network=uncloud 2>/dev/null || true)
|
|
417
416
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
fi
|
|
417
|
+
for container in $CONTAINERS; do
|
|
418
|
+
docker network disconnect uncloud "$container" 2>/dev/null || true
|
|
419
|
+
done
|
|
422
420
|
|
|
423
421
|
docker network rm uncloud 2>/dev/null || true
|
|
424
422
|
docker network create --driver bridge \
|
|
@@ -426,10 +424,9 @@ docker network create --driver bridge \
|
|
|
426
424
|
--ipv6 --subnet fd00:a10:210::/64 --gateway fd00:a10:210::1 \
|
|
427
425
|
uncloud
|
|
428
426
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
fi
|
|
427
|
+
for container in $CONTAINERS; do
|
|
428
|
+
docker network connect uncloud "$container" 2>/dev/null || true
|
|
429
|
+
done
|
|
433
430
|
|
|
434
431
|
# Step 5: Start the iptables service
|
|
435
432
|
systemctl start docker-ipv6-nat64
|