iouAkira / someDockerfile

一些自定义Docker镜像的Dockerfile文件
GNU General Public License v3.0
130 stars 52 forks source link

容器启动后无法进入bash #18

Closed amountnothing closed 2 years ago

amountnothing commented 3 years ago

OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "bash": executable file not found in $PATH: unknown

xpigm commented 2 years ago

不知道你用的哪个容器,默认情况下基于alpine的镜像是没有bash的,可以改成 docker exec -it xxx /bin/sh

amountnothing commented 2 years ago

虽然最后用其他方法解决了我的问题,不过还是非常感谢