Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Stop always pulling the latest image. (#2558)

Shimada6661ffaed48c4ec
diff --git a/opendevin/runtime/docker/ssh_box.py b/opendevin/runtime/docker/ssh_box.py
index 8c083f12b2..44b8197d84 100644
--- a/opendevin/runtime/docker/ssh_box.py
+++ b/opendevin/runtime/docker/ssh_box.py
@@ -247,9 +247,6 @@ class DockerSSHBox(Sandbox):
logger.info('Detected initial session.')
if not config.persist_sandbox or self.is_initial_session:
logger.info('Creating new Docker container')
- # update the container image
- if self.container_image.endswith(':main'):
- self.docker_client.images.pull(self.container_image)
n_tries = 5
while n_tries > 0:
try: