[境外资料搬运]docker 糟心错误OCI runtime exec failed: exec failed 解决方案

今天下午尝试在Ubuntu18 使用sudo docker exec -it dc0b8b529e8 /bin/bash, 结果一串错误

OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown

解决方案:使用sudo docker exec -it dc0b8b529e8 /bin/sh

总结centos可以正常使用bash, 我也不知道为什么Ubuntu要独树一帜只认sh.

 

感谢:https://github.com/appleboy/gorush/issues/319

你可能感兴趣的:(docker,Ubuntu)