image-cache
Shares Docker build layers and heavy images between cloud sessions through the owner's ghcr.io. Use when a repo's image build is slow on cloud, when a session pulls or pushes ghcr.io images, or when a heavy tool image should be prebuilt once.
原文 · 译文尚未补齐适用对象:设计与内容创作。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Image cache on ghcr.io
- Access
- Which shape
- Reference
A cloud session starts with an empty Docker cache, so every image builds from scratch. The owner's ghcr.io namespace is the shared cache: one session writes it, the next reads it. and below are the GitHub owner and name of the repo being built, lower-cased (git remote get-url origin). The egress proxy logs every ghcr.io request in as the owner (a token with read:packages and write:packages, injected as Authorization: Bearer ). Pull and push with plain docker; GITHUBTOKEN and GHTOKEN hold placeholders, so a docker login would only send the wrong credential. Check it first: curl -s -o /dev/null -w '%{httpcode}' https://ghcr.io/v2/ answers 200. A 403 with invalid token means the environment's ghcr.io secret is wrong (a raw token instead of its base64): a You: item for the owner, not something to work around. Layer cache (the default, for an image the repo builds): BuildKit reads and writes the cache beside the build, so nobody pushes by hand and a changed input simply misses. Add to the repo's single build entry point, per image: --cache-from type=registry,ref=ghcr.io/ / / :buildcache --cache-to type=registry,ref=ghcr.io/ / / :buildcache,mode=max,ignore-error=true. mode=max keeps the
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- Paradiddle131/loadout
- 源文件
- cloud/skills/image-cache/SKILL.md
- 固定版本
- d3a1a766645489ce25fb1c6f4ec7113604b6cfb8
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Paradiddle131/loadout · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T09:00:59.776Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。