Fix: connect on docker devcontainer to vscode-ide (#7464)

This commit is contained in:
Damian Tometzki
2025-09-10 21:19:37 +02:00
committed by GitHub
parent b1b20e50ff
commit 32abe905f1
2 changed files with 4 additions and 0 deletions

View File

@@ -424,6 +424,9 @@ export async function start_sandbox(
args.push('-t');
}
// allow access to host.docker.internal
args.push('--add-host', 'host.docker.internal:host-gateway');
// mount current directory as working directory in sandbox (set via --workdir)
args.push('--volume', `${workdir}:${containerWorkdir}`);