Skip to content

Commit 231959e

Browse files
JeffreyDallasclaude
andcommitted
ci: skip docker network creation on Windows in setup-dual-e2e.sh
Windows Docker Desktop does not expose the bridge network plugin via the v1 plugin registry, so `docker network create --driver bridge` fails. Kind manages its own Docker network automatically on Windows, making the manual creation unnecessary. Guard the block with an OSTYPE check (msys* = Git Bash on Windows). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent be19b30 commit 231959e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

test/e2e/dual-cluster/setup-dual-e2e.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ for i in $(seq 1 "${SOLO_CLUSTER_DUALITY}"); do
4949
kind delete cluster -n "${SOLO_CLUSTER_NAME}-c${i}" || true
5050
done
5151

52-
docker network rm -f kind || true
53-
docker network create kind --scope local --subnet 172.19.0.0/16 --driver bridge
52+
# On Windows (Docker Desktop), the bridge network plugin is not available via the v1
53+
# plugin registry. Kind manages its own Docker network automatically on Windows, so
54+
# manual network creation is not needed and will fail. Skip it on Windows (msys/Git Bash).
55+
if [[ "$OSTYPE" != msys* ]]; then
56+
docker network rm -f kind || true
57+
docker network create kind --scope local --subnet 172.19.0.0/16 --driver bridge
58+
fi
5459
docker info | grep -i cgroup || true
5560

5661
# Setup Helm Repos

0 commit comments

Comments
 (0)