MCPcopy Index your code
hub / github.com/usestrix/strix / image_exists

Function image_exists

strix/interface/utils.py:1356–1362  ·  view source on GitHub ↗
(client: Any, image_name: str)

Source from the content-addressed store, hash-verified

1354
1355
1356def image_exists(client: Any, image_name: str) -> bool:
1357 try:
1358 client.images.get(image_name)
1359 except ImageNotFound:
1360 return False
1361 else:
1362 return True
1363
1364
1365def update_layer_status(layers_info: dict[str, str], layer_id: str, layer_status: str) -> None:

Callers 1

pull_docker_imageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected