Dokcer 报错OCI runtime exec failed: exec failed: unable to start container process: exec: “bash“: exec

在使用 Docker 想要通过运行docker exec -it containername bash指令进入指定容器内执行命令和操作容器的文件系统时,莫名其妙报错OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown,此时换个指令docker exec -it containername /bin/sh就可以正常进入容器了!

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