Skip to content

fix(sandbox): install docker-cli and add container DNS fallback routing for local sandboxes - #240

Open
elf-mouse wants to merge 1 commit into
yc-software:mainfrom
elf-mouse:fix/sandbox-docker-cli-dns-fallback
Open

fix(sandbox): install docker-cli and add container DNS fallback routing for local sandboxes#240
elf-mouse wants to merge 1 commit into
yc-software:mainfrom
elf-mouse:fix/sandbox-docker-cli-dns-fallback

Conversation

@elf-mouse

@elf-mouse elf-mouse commented Aug 6, 2026

Copy link
Copy Markdown

This commit resolves docker socket permission issues and container-to-container networking for local sandboxes in containerized deployments:

  1. deploy/core/Dockerfile:

    • Install docker-cli package and allow root execution to access mounted /var/run/docker.sock.
  2. src/sandbox/local-sandbox.ts:

    • Fall back between 127.0.0.1, host.docker.internal, and container hostname http://${name}:8080 in daemon() to ensure reliable container-to-container execution across all environments.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…ng for local sandboxes

This commit resolves docker socket permission issues and container-to-container networking for local sandboxes in containerized deployments:

1. `deploy/core/Dockerfile`:
   - Install `docker-cli` package and allow root execution to access mounted `/var/run/docker.sock`.

2. `src/sandbox/local-sandbox.ts`:
   - Fall back between `127.0.0.1`, `host.docker.internal`, and container hostname `http://${name}:8080` in `daemon()` to ensure reliable container-to-container execution across all environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants