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 7, 2020 in Kubernetes by akhtar
• 38,260 points
19,814 views

1 answer to this question.

+1 vote

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, 2020 by MD
• 95,460 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
1,189 views
0 votes
1 answer

Error: UPGRADE FAILED: failed to create resource: namespaces "pr-1627-app " not found

Hi@akhtar, This usually happens when the state of ...READ MORE

answered Jul 9, 2020 in Kubernetes by MD
• 95,460 points
3,452 views
0 votes
1 answer

[preflight] WARNING: ebtables not found in system path

Hi@akhtar, you may be missing ebtables, ethtool, or a similar ...READ MORE

answered Jul 16, 2020 in Kubernetes by MD
• 95,460 points
3,762 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,300 points
2,467 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
• 52,350 points
1,396 views
+1 vote
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
15,476 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP