fix: simplify podman network creation (no subnet, non-silent)
This commit is contained in:
parent
956b9f2968
commit
7e12e8d831
1 changed files with 2 additions and 4 deletions
|
|
@ -113,11 +113,9 @@ if [ "$GREENFIELD" = true ]; then
|
||||||
# Copy launcher config
|
# Copy launcher config
|
||||||
cp -r "$SCRIPT_DIR/config/nextworkspace"/* "$TARGET_DIR/config/nextworkspace/" 2>/dev/null || true
|
cp -r "$SCRIPT_DIR/config/nextworkspace"/* "$TARGET_DIR/config/nextworkspace/" 2>/dev/null || true
|
||||||
|
|
||||||
# Create podman network
|
# Create podman network (no subnet — auto-assign)
|
||||||
echo "[5/6] Creating podman network..."
|
echo "[5/6] Creating podman network..."
|
||||||
podman network create --subnet 172.16.0.0/24 "$NETWORK_NAME" 2>/dev/null || true
|
podman network create "$NETWORK_NAME" 2>&1 || echo "[WARN] Network create failed (may already exist)"
|
||||||
# Ensure network exists for rootless too
|
|
||||||
sudo -u master podman network create --subnet 172.16.0.0/24 "$NETWORK_NAME" 2>/dev/null || true
|
|
||||||
|
|
||||||
# Deploy all containers
|
# Deploy all containers
|
||||||
echo "[6/6] Deploying containers..."
|
echo "[6/6] Deploying containers..."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue