mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
Fix: connect on docker devcontainer to vscode-ide (#7464)
This commit is contained in:
@@ -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}`);
|
||||
|
||||
|
||||
@@ -245,6 +245,7 @@ export class IDEServer {
|
||||
`gemini-ide-server-${process.ppid}.json`,
|
||||
);
|
||||
this.log(`IDE server listening on port ${this.port}`);
|
||||
|
||||
await writePortAndWorkspace(
|
||||
context,
|
||||
this.port,
|
||||
|
||||
Reference in New Issue
Block a user