其他分享
首页 > 其他分享> > OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash"

OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash"

作者:互联网

引入了一个镜像,由于要修改一个参数,因此要进入容器中,一般使用

docker exec -it 容器名 /bin/bash

然而报错

OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

看了dockerhub上的一条,是使用这个命令

 CMD ["/bin/sh"]

所以进入容器需要:

docker exec -it 容器名 /bin/sh

标签:bin,OCI,容器,exec,failed,bash
来源: https://www.cnblogs.com/q1359720840/p/16473337.html