进入Docker容器dockerexec[CONTAINERID]binbash报错问题

进入Docker容器dockerexec[CONTAINERID]binbash报错问题

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信