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, 2020 in Kubernetes by akhtar
• 38,180 points
7,493 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,140 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
363 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,140 points
216 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 15, 2020 in Kubernetes by MD
• 95,140 points
397 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
1,218 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,310 points
197 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
10,246 views
0 votes
1 answer