Skip to content

CRI: tag+digest sandbox image breaks RunPodSandbox #13529

Closed

Description

@hakman

Description

A CRI sandbox image (pinned_images.sandbox, or legacy sandbox_image) configured as a reference with both a tag and a digest (name:tag@sha256:…) makes RunPodSandbox fail with "failed to get sandbox image … not found", even though containerd successfully pulls that exact image during the same call and stores it. No pods can start on the node.

Identical config works on 2.2.x and fails on 2.3.x (verified on 2.3.0 and 2.3.1).

#13513 might also fix this issue.

Steps to reproduce the issue

  1. Fetch containerd 2.3.1 + crictl into a temp dir:
mkdir -p /tmp/ctd-repro && cd /tmp/ctd-repro
curl -fsSL https://github.com/containerd/containerd/releases/download/v2.3.1/containerd-2.3.1-linux-amd64.tar.gz | tar xz
curl -fsSL https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.34.0/crictl-v1.34.0-linux-amd64.tar.gz | tar xz -C bin
  1. Write a config with a tag@digest sandbox image:
cat > config.toml <<EOF
version = 3
root = "/tmp/ctd-repro/root"
state = "/tmp/ctd-repro/state"
[grpc]
  address = "/tmp/ctd-repro/c.sock"
[plugins."io.containerd.cri.v1.images".pinned_images]
  sandbox = "registry.k8s.io/pause:3.10.1@sha256:278fb9dbcca9518083ad1e11276933a2e96f23de604a3a08cc3c80002767d24c"
[plugins."io.containerd.cri.v1.runtime".containerd]
  default_runtime_name = "runc"
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runc]
  runtime_type = "io.containerd.runc.v2"
EOF
  1. Start the throwaway containerd (root, with bin on PATH for the shim/runc):
sudo env "PATH=/tmp/ctd-repro/bin:/usr/sbin:/usr/bin:/sbin:/bin" ./bin/containerd -c config.toml &>containerd.log &
sleep 3
  1. Minimal pod-sandbox config (host network, so no CNI is needed):
cat > pod.json <<'EOF'
{ "metadata": {"name":"probe","namespace":"default","uid":"u-1","attempt":1},
  "log_directory":"/tmp",
  "linux": {"security_context": {"namespace_options": {"network": 2}}} }
EOF
  1. Run the sandbox — fails:
$ sudo ./bin/crictl -r unix:///tmp/ctd-repro/c.sock -i unix:///tmp/ctd-repro/c.sock runp pod.json
... code = NotFound desc = failed to start sandbox "...": failed to get sandbox image "registry.k8s.io/pause:3.10.1@sha256:278fb9...": image "...": not found
  1. …but the image is present — containerd pulled it during step 5 and stored it under its canonical (digest-only) name:
$ sudo ./bin/ctr -a /tmp/ctd-repro/c.sock -n k8s.io images ls | grep pause
registry.k8s.io/pause@sha256:278fb9...

Describe the results you received and expected

RunPodSandbox fails immediately with:

code = NotFound desc = failed to start sandbox "...": failed to get sandbox image "registry.k8s.io/pause:3.10.1@sha256:278fb9...": image "...": not found

containerd pulled that image during the same call, ctr -n k8s.io images ls shows it present as registry.k8s.io/pause@sha256:278fb9..., yet the sandbox lookup reports it missing. No pod sandbox is created, so the node can run no pods.

RunPodSandbox should resolve the configured sandbox image (a valid name:tag@digest reference) and start the sandbox, as it does on containerd 2.2.x, and as 2.3.x already does when the same image is configured tag-only (pause:3.10.1) or digest-only (pause@sha256:...).

What version of containerd are you using?

containerd github.com/containerd/containerd/v2 v2.3.1 64b425c

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

version = 3
root = "/tmp/ctd-repro/root"
state = "/tmp/ctd-repro/state"
[grpc]
  address = "/tmp/ctd-repro/c.sock"
[plugins."io.containerd.cri.v1.images".pinned_images]
  sandbox = "registry.k8s.io/pause:3.10.1@sha256:278fb9dbcca9518083ad1e11276933a2e96f23de604a3a08cc3c80002767d24c"
[plugins."io.containerd.cri.v1.runtime".containerd]
  default_runtime_name = "runc"
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runc]
  runtime_type = "io.containerd.runc.v2"

Activity

  1. added
    area/cri
    on Jun 4, 2026
  2. changed the title [-]cri: RunPodSandbox "failed to get sandbox image … not found" for tag+digest sandbox image[/-] [+]CRI: tag+digest sandbox image breaks RunPodSandbox[/+] on Jun 4, 2026
  3. hakman commented on Aug 13, 2026

    @hakman
    ContributorAuthor

    This is now fixed in 2.3.4. Thanks!

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

    area/crikind/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions