报错问题
[root@docker2 containers]# docker exec -it b35e17b13393 bash
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused "process_linux.go:75:
starting setns process caused \"fork/exec /proc/self/exe: no such file or directory\""
"
如果/bin/bash和/bin/sh 都报错,估计是执行了docker restart<容器id>
将容器stop再重新start。
解决办法:
1停止容器,2运行容器,3.连接容器(成功)