OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown

0 votes

Hi Guys,

I am trying to login in my pod using exec command. But it is showing me the below error.

C:\Users\Nadeem Akhter>kubectl exec -it myprom-69684ff8c5-98rmh  -- bash
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown
command terminated with exit code 126

How can I solve this error?

Jun 6 in Kubernetes by akhtar
• 14,030 points
357 views

1 answer to this question.

0 votes

Hi@akhtar,

It seems that in your pod bash shell is not present. You can try with another shell as given below.

C:\Users\Nadeem Akhter>kubectl exec -it myprom-69684ff8c5-98rmh  -- sh

Hope this will help.

answered Jun 7 by MD
• 31,430 points

Related Questions In Kubernetes

0 votes
1 answer

ConfigMaps volume not creating file in container

Did a little research and found the ...READ MORE

answered Sep 6, 2018 in Kubernetes by Atul
• 10,240 points
180 views
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
764 views
0 votes
3 answers

Using multiple commands in a kubernetes yaml file

Try something like this: containers: - name: ...READ MORE

answered Apr 23, 2019 in Kubernetes by lyza
14,433 views
0 votes
1 answer

Pods IP address from inside a container in the pod

Make sure that your pod yaml file ...READ MORE

answered Aug 29, 2018 in Kubernetes by Kalgi
• 51,890 points
475 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 51,890 points
125 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
7,033 views
0 votes
1 answer
0 votes
1 answer

kubelet, minikube Back-off restarting failed container

Hi@akhtar, You may get this error if you ...READ MORE

answered May 22 in Kubernetes by MD
• 31,430 points
171 views