mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
fix: handle containers with tagless images in DockerSandboxService (#13238)
This commit is contained in:
@@ -197,6 +197,12 @@ class DockerSandboxService(SandboxService):
|
||||
)
|
||||
)
|
||||
|
||||
if not container.image.tags:
|
||||
_logger.debug(
|
||||
f'Skipping container {container.name!r}: image has no tags (image id: {container.image.id})'
|
||||
)
|
||||
return None
|
||||
|
||||
return SandboxInfo(
|
||||
id=container.name,
|
||||
created_by_user_id=None,
|
||||
|
||||
Reference in New Issue
Block a user