nerdctl in containerd, `unable to start container process: error during container init: error mounting "/var/lib/nerdctl/NNN/containers/default/NNN/resolv.conf" to rootfs at "/etc/resolv.conf": ... no such file or directory: unknown #1243
Replies: 4 comments 4 replies
-
I forgot to tell that I'm able to |
Beta Was this translation helpful? Give feedback.
-
stat /var/lib/nerdctl/1935db59/containers/k8s.io/13cb58e1c9870196caa3450eea5553be5bdb469498c76bfefe95e82a08d12f0c/resolv.conf: no such file or directory: unknown |
Beta Was this translation helpful? Give feedback.
-
first:docker run -it --rm -v /var/lib/containerd:/var/lib/containerd --net=host --privileged -v /run/containerd/:/run/containerd/ nertct:v1 |
Beta Was this translation helpful? Give feedback.
-
Hi have the same issue but with aks agents. |
Beta Was this translation helpful? Give feedback.
-
Hey folks,
I need some help with an issue running nerdctl commands inside a gitlab runner deployed on kubernetes with containerd runtime.
From the beginning I only have one FATAL error which is
level=fatal msg="no such file or directory"
when running anerdctl compose up
but alsonerd run hello-world
Thanks to @AkihiroSuda's guidance I've entered the runner pod and tried some debug-full command:
Which gave me:
I get that DEBU message can be ignored.
But the thing is, focusing on the FATA message, if I perform
ls
orstat
myself I can find the supposed missing file:root@runner-btbzx--project-25793245-concurrent-07qhsp:/# stat /var/lib/nerdctl/1935db59/containers/default/767aa2c2a216d8fce638c59234f87c251f88c88311b3f82d5bcf4dc37fdf0dbb/resolv.conf File: /var/lib/nerdctl/1935db59/containers/default/767aa2c2a216d8fce638c59234f87c251f88c88311b3f82d5bcf4dc37fdf0dbb/resolv.conf Size: 120 Blocks: 8 IO Block: 4096 regular file Device: 10301h/66305d Inode: 5133481 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2022-07-16 21:59:50.226552351 +0000 Modify: 2022-07-16 21:59:50.226552351 +0000 Change: 2022-07-16 21:59:50.226552351 +0000 Birth: 2022-07-16 21:59:50.226552351 +0000
root@runner-btbzx--project-25793245-concurrent-07qhsp:/# ls -l /var/lib/nerdctl/1935db59/containers/default/767aa2c2a216d8fce638c59234f87c251f88c88311b3f82d5bcf4dc37fdf0dbb total 8 -rw-r--r-- 1 root root 13 Jul 16 21:59 hostname -rw-r--r-- 1 root root 120 Jul 16 21:59 resolv.conf
So why is the
resolv.conf
considered missing while it's actually here?Here is my nerdctl info:
Beta Was this translation helpful? Give feedback.
All reactions