dockerdocker" />

进docker容器时报错“OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown”

📅 2024-10-13
👁️ 925 阅读
💬 0 评论
📂 未分类
0

今天在准备进入容器时发现提示了“OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown”
进docker容器时报错“OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown”
根据提示能看到缺少bash工具导致的,那就安装下bash工具吧
虚机为centOS,用yum install -y bash
进docker容器时报错“OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown”
安装后再次执行docker exec -it 容器id bash发现还是提示此错误,暂时还不知道原因,可以改用docker exec -it 容器id sh命令一样可以。

bash和sh命令区别:
进docker容器时报错“OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown”

← 上一篇Docker快速部署chatgpt下一篇 →模拟永恒之蓝ms17_010_enternalblue漏洞入侵windows过程

💬 评论 (0)

发表评论

😀 😂 😅 😍 😒 😓 😔 😖 😘 😡 😭 😱 😤 😴 😷 😵 😎 👍 👎 👏 🙏 ❤️ 💔 🎉 🎂 🤕 😏 👻