Skip to content

Bound images referenced by tag@digest are pruned right after being pulled #2640

Description

@axel7083

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:

let image_names = HashSet::from_iter(all_bound_images.iter().map(|img| img.image.as_str()));

pub(crate) async fn prune_except_roots(&self, roots: &HashSet<&str>) -> Result<Vec<String>> {
let all_images = self.list_images().await?;
tracing::debug!("Images total: {}", all_images.len(),);
let mut garbage = Vec::new();
for image in all_images {
if image
.names
.iter()
.flatten()
.all(|name| !roots.contains(name.as_str()))

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.

Activity

  1. added theissue type on Nov 8, 2026
  2. added 10 commits that reference this issue on Nov 23, 2026
    b3ca528
    d3642c2
    cfe9c3f
    f9e606d
    768fd8b
    a285831
    015537e
    5bc551d
    c87751c
    e085b9c
  3. added a commit that references this issue on Dec 1, 2026
    1c618ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions