-
Notifications
You must be signed in to change notification settings - Fork 114
Add --network host to Playwright Docker containers for localhost access #7158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --network host to Playwright Docker containers for localhost access #7158
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
Smoke Test Results for Run 20414699417Last 2 Merged PRs:
Test Results:
Overall Status: PASS ✅ cc
|
|
Tests:
|
Smoke Test Results: Copilot (No Firewall)Last 2 Merged PRs:
Test Results:
Overall: PASS (4/5 tests successful)
|
|
Merged PRs: #7156 Comment out lock-for-agent annotation in compiled workflow files; #7151 Enhance Dev Hawk with deep PR analysis and automatic agent task creation
|
Smoke Test Results - Claude EngineRecent PRs:
Test Results:
Overall Status: PASS (5/6 core tests passed)
|
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
Smoke Test Results✅ File Writing: Created Overall Status: FAIL The
|
Playwright MCP servers running in Docker containers couldn't access localhost services because containers are network-isolated by default. This blocked workflows like multi-device documentation testing from connecting to preview servers at
localhost:4321.Changes
--network hostto Docker run args across all engine renderers:renderPlaywrightMCPConfigWithOptions()inmcp-config.gorenderPlaywrightMCPConfigTOML()inmcp-config.goandrenderPlaywrightTOML()inmcp_renderer.goExample
Before:
After:
This enables Playwright containers to reach host network services, allowing browser automation workflows to test locally-served applications.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login runs/20251221-191242-23690/test-1584857714/.github/workflows GOPROXY 0/x64/bin/node l GOWORK 64/pkg/tool/linu--show-toplevel /tmp/gh-aw-test-version vers�� 16/create_discussion.js 64/pkg/tool/linuGO111MODULE e/git l grep 64/bin/go e/git(http block)/usr/bin/gh gh api user --jq .login ithub/workflows -dwarf=false /usr/bin/gh go1.25.0 -c=4 -nolocalimports /usr/bin/gh api om/actions/checkout.git(http block)/usr/bin/gh gh api user --jq .login it/ref/tags/v5 -trimpath da76f48ef715b273c01bf20029c1a8136f4/log.json -p main -lang=go1.25 git 0/x6�� om/actions/create-github-app-token.git(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.