Skip to content
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

hotfix: change default RUN_AS_DEVIN to true and change some network setting #895

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix port problem
  • Loading branch information
yufansong committed Apr 8, 2024
commit 591f07d06f8d46706226dd77aceb3f511264f363
4 changes: 2 additions & 2 deletions opendevin/sandbox/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ def restart_docker_container(self):
self.container = docker_client.containers.run(
self.container_image,
# only allow connections from localhost
command="/usr/sbin/sshd -D -p 2222 -o 'ListenAddress=127.0.0.1'",
network_mode='host',
command="/usr/sbin/sshd -D -p 2222 -o 'ListenAddress=0.0.0.0'",
ports={'2222/tcp': 2222},
working_dir='/workspace',
name=self.container_name,
hostname='opendevin_sandbox',
Expand Down