docker进入容器报错解决方法

avatar 2020年6月2日18:09:15 评论 2,309 次浏览

我这里是进入的jumpserver的容器,出现下面的错误

[root@www.wulaoer.org ~]#  docker exec -it acb68ea13349 /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown

下面是我的解决方法:

[root@www.wulaoer.org ~]# docker exec -it acb68ea13349 /bin/sh
or
[root@www.wulaoer.org ~]# docker exec -it acb68ea13349 bash
or
[root@www.wulaoer.org ~]# docker exec -it acb68ea13349 sh
avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: