问题描述:
在docker中 想要进入某个的容器时:
docker exec -it 容器Id bash
出现如下错误:
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container process caused "exec: \"bash\": executable file not found in $PATH"
解决方案:
把bash 换成 sh
例如:
docker exec -it 容器Id sh