docker exec -it xxxx bash 报错

1、报错信息

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"

2、问题详解

因为镜像没有 shell

3、解决办法

docker exec -it ed5955ea2c6e sh 


版权声明:本文为weixin_40841731原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。