From 992d2d6bba3423248641b1eb03a39a3384ab06c4 Mon Sep 17 00:00:00 2001 From: Mike Sul Date: Fri, 4 Sep 2026 14:30:00 +0200 Subject: [PATCH] fix(apps): fetch only required image metadata Add "--no-tags" option to the "skopeo inspect" command so it fetches from registry only those data that are required: an index (if needed), manifest, and image config. As result, it makes "skopeo" not to issue the image tag listing request, which evidently causes a problem for "hub.f.io" - it takes ages to process such requests. Signed-off-by: Mike Sul --- apps/docker_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docker_store.py b/apps/docker_store.py index 40b7ad30..937a06dc 100644 --- a/apps/docker_store.py +++ b/apps/docker_store.py @@ -154,7 +154,7 @@ def get_layer_digest(self, diff_id, idx): print(f"Image layer diff ID to digest mapping is not found in: {digest_file_path}, " f"fetching image manifest to get its layer digests; uri: {self._image_ref}...") output = subprocess.check_output( - ["skopeo", "inspect", f"docker://{self._image_ref}"]) + ["skopeo", "inspect", "--no-tags", f"docker://{self._image_ref}"]) image_desc = json.loads(output) for layer in image_desc["Layers"]: self._layer_digests.append(layer)