fix: handle containers with tagless images in DockerSandboxService (#13238)

This commit is contained in:
Chris Bagwell
2026-03-18 10:55:48 -05:00
committed by GitHub
parent 5d1f9f815a
commit 35a40ddee8
2 changed files with 61 additions and 0 deletions

View File

@@ -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,