使用docker exec + bash进入容器时报错
由于镜像系统不一,使用错误shell解释器导致,可尝试以下其中一种方案。
[root@localhost home]# docker exec -it container-test bash
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"bash\
【解决】
docker exec -it container-test /bin/bash
docker exec -it container-test /bin/sh
docker exec -it container-test /bin/csh
相关文章
- 10-02Docker容器进入-命令行只显示-bash-4.1#
- 10-02使用nsenter进入docker容器后端报错 mesg: ttyname failed: No such file or directory
- 10-02docker容器内使用sudo 报错bash: sudo: command not found
- 10-02docker exec + bash进入容器时报错
- 10-02使用nsenter进入docker容器后端报错 mesg: ttyname failed: No such file or directory
- 10-02当运行docker run -i -t ubuntu /bin/bash时,提示报错Error response from daemon: EOF?