?
【問題】使用docker exec + sh進(jìn)入容器時(shí)報(bào)錯(cuò)
[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
?
【分析】
由于鏡像系統(tǒng)不一,使用錯(cuò)誤shell解釋器導(dǎo)致,可嘗試以下其中一種方案。
?
【解決】
docker exec -it container-test /bin/bash
docker exec -it container-test /bin/sh
docker exec -it container-test /bin/csh
熱門工具 換一換