"runc": executable file not found
Hi,
I have the same issue that is described here https://github.com/nkhare/k8s-cicd-webinars/issues/6
error: error running container: error creating container for [/bin/sh -c mkdir -p /usr/src/app]: : exec: "runc": executable file not found in $PATH
This is running in a docker: RUN sudo apt-get install golang-go -y
RUN mkdir ~/buildah RUN cd ~/buildah RUN export GOPATH=pwd RUN git clone https://github.com/projectatomic/buildah ./src/github.com/projectatomic/buildah RUN sudo cp -a /projects/src/github.com/projectatomic/buildah/vendor/github.com/opencontainers/runc /usr/bin/. RUN sudo apt-get install buildah -y
Am I missing something?
Thanks,
You need to install runc and a few other packages in order to make this work, or just install the buildah package which should pull in the packaged software. Look at https://github.com/containers/buildah/blob/master/install.md
Hi @rhatdan
Thanks a lot!
Thanks for posting. I just encountered this with k3s. When I added a node the pods were showing an error like.
Dec 13 10:55:15 K8SW-04 k3s[889]: E1213 10:55:15.328927 889 kuberuntime_sandbox.go:70] "Failed to create sandbox for pod" err="rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/45f94047789b998bab98d9a81b41b8b159fd0b27190ef11ea0cf030d120e1eb1/log.json: no such file or directory): exec: \"runc\": executable file not found in $PATH: unknown" pod="longhorn-system/longhorn-csi-plugin-6k94d"
On the node I ran "sudo apt install runc". Error went away and pods started landing.
- OS: Ubuntu 20.04
- Rancher: 2.6
- k3s Kubernetes: v1.24.4+k3s1