OCI runtime exec failed: exec failed: container_linux.go:349: starting container 解决方法

docker执行命令:docker exec -it redis1 /bin/bash

在进入容器报错:OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused “exec: “/bin/bash”: stat /bin/bash: no such file or directory”: unknown

报错场景:我是pull了一个redis镜像,准备搭建私有库。运行了redis镜像,然后进入容器产生的错误

解决办法:

docker exec -it redis1 /bin/sh

or

docker exec -it redis1 bash

or

docker exec -it redis1 sh

你可能感兴趣的:(docker容器,docker)