OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

执行Docker命令:

docker exec -it 6620a3dc4d19 /bin/bash

出现错误:

OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

解决方法(使用不同的命令执行):

  1. docker exec -it 1e33b26152e1 /bin/sh

  2. docker exec -it 1e33b26152e1 /bash

  3. docker exec -it 1e33b26152e1 /sh

posted @ 2022-01-09 23:08  ipaler  阅读(626)  评论(0)    收藏  举报