Bound images referenced by tag@digest are pruned right after being pulled
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 71/100
Research direction
The issue points to image retention in crates/lib/src/deploy.rs and name handling in crates/lib/src/podstorage.rs. Read the prune comparison around the linked lines, then reproduce with the described .container binding and bootc switch. Done when a bound repo:tag@sha256:digest image remains available after pruning and the reported reboot failure is prevented.
Written by the indexing model from the issue text.
Description
A logically bound image referenced as repo:tag@digest is pulled by bootc switch, then pruned in the same command:
Fetching bound image: docker.io/vaultwarden/server:1.37.5-alpine@sha256:bbe684a0…...done (3 seconds)
Bound images stored: 1
Deploying...done (6 seconds)
Pruned images: 1 (layers: 5, objsize: 73.9 kB)
After the reboot, the app fails with image not known (Pull=never).
Podman stores a repo:tag@digest pull under the name repo@digest, without the tag. The prune keeps an image only if one of its names equals an Image= string exactly:
so docker.io/vaultwarden/server:1.37.5-alpine@sha256:… never matches docker.io/vaultwarden/server@sha256:….
Reproduce: bind an image with Image=<repo>:<tag>@sha256:<digest> in a .container linked from /usr/lib/bootc/bound-images.d/, then bootc switch to it. Seen with bootc 1.17.1 (Fedora 45); main has the same code. A digest-only reference works.
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 230
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 42
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bootc-dev/bootc
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
install: improve error message when systemd-boot is selected without composefs backendMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testPossibly taken @louistrue claimed this today. Openready
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dutchman-cad/dutchman#874 ·
Maintainers usually reply within 1 day
-
bug good first issue ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MartinPTielemans/ilo#3840 ·
Maintainers usually reply within 1 day
-
bug file-compat priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
storytold/wordcraft#7248 · 1 comment ·
Maintainers usually reply within 4 days