Skip to content

Commit 0380152

Browse files
committed
Revert "Enh: make docker_internal_host configurable with default value (SWE-agent#266)"
This reverts commit e6d38e2.
1 parent d8428fd commit 0380152

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/swerex/deployment/config.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ class DockerDeploymentConfig(BaseModel):
4545
"""The container runtime to use (docker or podman)."""
4646
exec_shell: list[str] = ["/bin/sh", "-c"]
4747
"""The shell executable and arguments to use for running commands."""
48-
docker_internal_host: str = "http://127.0.0.1"
49-
"""The host to use for connecting to the runtime.
50-
In most cases you can leave this as-is, however for docker-in-docker
51-
setups you might have to set it to http://host.docker.internal/
52-
(see https://github.com/SWE-agent/SWE-ReX/issues/253 for more information).
53-
"""
5448

5549
type: Literal["docker"] = "docker"
5650
"""Discriminator for (de)serialization/CLI. Do not change."""

src/swerex/deployment/docker.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,7 @@ async def start(self):
271271
self._hooks.on_custom_step("Starting runtime")
272272
self.logger.info(f"Starting runtime at {self._config.port}")
273273
self._runtime = RemoteRuntime.from_config(
274-
RemoteRuntimeConfig(
275-
host=self._config.docker_internal_host,
276-
port=self._config.port,
277-
timeout=self._runtime_timeout,
278-
auth_token=token,
279-
)
274+
RemoteRuntimeConfig(port=self._config.port, timeout=self._runtime_timeout, auth_token=token)
280275
)
281276
t0 = time.time()
282277
await self._wait_until_alive(timeout=self._config.startup_timeout)

0 commit comments

Comments
 (0)