kubectl exec 登录容器报错

[root@master ingress]# kubectl exec -it nginx-deploy-75f678f9d9-p7jgr /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"shell\": executable file not found in $PATH": unknown
command terminated with exit code 126

解决方法:

kubectl exec -it nginx-deploy-75f678f9d9-p7jg sh

你可能感兴趣的:(Kubernetes)