运行 docker build 时出现以下错误...
OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown
最佳答案
你的容器没有安装 bash
但可能它有 sh
所以运行容器(用 /bin/bash
替换 /bin/sh
):
docker exec -it username/imagename /bin/sh
关于Docker 构建错误 OCI 运行时创建失败 "exec:\"/bin/bash\": stat/bin/bash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61357736/