You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error nerdctl commit, "failed to create a tmp single-platform image..., content digest ... not found" #3415
I am using Kubernetes, and the container runtime is containerd.
I want to commit an image from within a pod.
Inside the pod, nerdctl is installed, and the pod has mounted the node's /run/containerd and /var/lib/containerd directories as hostPath volumes.
When I try to commit using nerdctl, I encounter the following error:
"time="2024-09-05T08:09:43Z" level=fatal msg="failed to create a tmp single-platform image "registry:tag-tmp-reduced-platform": content digest sha256:602d8ad51b8130f3fcd71cb936dea612ebc799666136abf2e5914585b3178a4a: not found"
The registry and tag seem fine.
I've also tried pulling the base image before running nerdctl.
I already attempted using the --unpack=false flag as well.
Do you know of any solution for this issue?
Steps to reproduce the issue
No response
Describe the results you received and expected
complete commit
What version of nerdctl are you using?
nerdctl commit
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
@AkihiroSuda we need to fix this.
We got many reports / variants of it.
I believe this is flaky - sometimes the Kube test would pass, sometimes it would fail.
Someone mentioned it could be containerd garbage collecting layers.
Tagging @lingdie who did some work already on this, and @fahedouch who might have an idea what's going on (IIRC he mentioned before that this was happening as well outside of kube?).
Anyone has a good lead to start investigating? Or at least a simpler way to repro without Kube?
There are issues when committing a pod running an image built from a Dockerfile.
Could the issue be caused by the image built from the Dockerfile?
Committing a pod running an image from NVIDIA GPU Cloud worked fine
There are issues when committing a pod running an image built from a Dockerfile. Could the issue be caused by the image built from the Dockerfile? Committing a pod running an image from NVIDIA GPU Cloud worked fine
Unfortunately, we reproduced with prebuilt images - so I would say that this is unlikely - but then again, we don't know at this point...
Activity
apostasie commentedon Sep 5, 2024
Possibly a duplicate of #827 ?
jooseop commentedon Sep 6, 2024
"failed to create a tmp single-platform image"
-> Solved issue, using the '--all-platforms' option
However, " content digest ... not found" still remains.
apostasie commentedon Sep 6, 2024
@AkihiroSuda we need to fix this.
We got many reports / variants of it.
I believe this is flaky - sometimes the Kube test would pass, sometimes it would fail.
Someone mentioned it could be containerd garbage collecting layers.
Tagging @lingdie who did some work already on this, and @fahedouch who might have an idea what's going on (IIRC he mentioned before that this was happening as well outside of kube?).
Anyone has a good lead to start investigating? Or at least a simpler way to repro without Kube?
jooseop commentedon Sep 6, 2024
There are issues when committing a pod running an image built from a Dockerfile.
Could the issue be caused by the image built from the Dockerfile?
Committing a pod running an image from NVIDIA GPU Cloud worked fine
apostasie commentedon Sep 6, 2024
Unfortunately, we reproduced with prebuilt images - so I would say that this is unlikely - but then again, we don't know at this point...
lingdie commentedon Sep 6, 2024
I'm not sure, but I do know that crt can push images that have been committed using nerdctl.
jooseop commentedon Sep 9, 2024
Steps
Error
"ctr push" also same problem.
Solution
Isn't there a problem with "nerdctl pull"?
lingdie commentedon Sep 9, 2024
not nerdctl pull, bug containerd pull.
see: containerd/containerd#8973