当我运行 kubectl exec -it /bin/bash 时,出现这样的错误
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"env\": executable file not found in $PATH": unknown command terminated with exit code 126
我使用 kubectl 和 docker exec 进行了几次重试,但在谷歌容器优化操作系统上没有任何效果
我用了以下的
kubectl exec -it <podname> /bin/bashkubectl exec -it <podname> /bin/shkubectl exec -it <podname> //bin//shkubectl exec -it <podname> //bin//bashkubectl exec -it <podname> /bashkubectl exec -it <podname> bash
我登录服务器并尝试使用docker exec -it <containerId> <all options mentioned above>. 但似乎没有什么好解决的。