[question] when using docker exec + sh to enter the container, an error will be reported
[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\": executable file not found in $PATH": unknown
[analysis]
Due to the different mirror systems and the use of wrong shell interpreter, you can try one of the following solutions
[solution]
docker exec -it container-test /bin/bash
docker exec -it container-test /bin/sh
docker exec -it container-test /bin/csh
Similar Posts:
- Docker OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caus
- [Solved] 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 startup container Error response from daemon: OCI runtime create failed: container_ linux.go:349
- failed: OCI runtime create failed: container_linux.go:348
- Docker Container Error:Failed to get D-Bus connection: Operation not permitted
- [Solved] cannot kill Docker container – permission denied
- The docker container reports an error when using the systemctl command
- docker: Error response from daemon: Conflict. The container name “/xx” is already in use
- [Solved] Failed to get D-Bus connection: Operation not permitted
- Install a docker container in centos7 that can log in SSH