2023年7月6日发(作者:)
进⼊Docker容器dockerexec[CONTAINERID]binbash报错问题我们直接使⽤ 命令 docker exec -it ceff85e1747d /bin/bash 在有些情况下会报出OCI runtime exec failed: exec failed: container_:337: starting container process caused"exec: "/bin/bash": stat /bin/bash: no such file or directory": unknown这个错误说明 镜像不包含适合bash的风格操作,没有这样的⽂件或⽬录可能你的镜像基于busybox,它没有bash shell。但他在/bin/sh有⼀个shell直接执⾏ docker exec -ti ceff85e1747d /bin/sh 就可以进⼊容器⾥⾯l
发布者:admin,转转请注明出处:http://www.yc00.com/news/1688593684a153181.html
评论列表(0条)