[BUG] needed to remove domains in `init-firewall.sh` to launch dev container (Mac)

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Jun 10, 2026 · closed Jun 11, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I'm installing claude in Docker for the first time. I commented out the following to get this to launch correctly:

# Resolve and add other allowed domains
for domain in \
    "registry.npmjs.org" \
    "api.anthropic.com" \
    "sentry.io" \
    "statsig.anthropic.com" \
    "statsig.com"; do
    # "update.code.visualstudio.com" \
    # "marketplace.visualstudio.com" \
    # "vscode.blob.core.windows.net"; do
    echo "Resolving $domain..."

What Should Happen?

I should not need to edit the domain list

Error Messages/Logs

[1441 ms] postStartCommand from devcontainer.json failed with exit code 127. Skipping any further user-provided commands. [1442 ms] Error: Command failed: /bin/sh -c sudo /usr/local/bin/init-firewall.sh

Steps to Reproduce

  1. clone new repo, start with no containers/images in docker desktop on Mac
  2. attempt to launch dev container, it will abort in the firewall init script.
  3. disable domains (see the 3 I disabled) and run it again, it then works

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Latest master branch

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] · 4 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/55623
  2. https://github.com/anthropics/claude-code/issues/35197

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

bsodmike · 4 months ago
github-actions[bot] · 2 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.