docker exec 报错:error: code = 13 desc = invalid header field value "oci runtime error

报错问题

 [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\\\"\"\n"

 如果/bin/bash和/bin/sh 都报错,估计是执行了docker restart<容器id>
将容器stop再重新start。

解决办法:

1停止容器,2运行容器,3.连接容器(成功)

 

 

posted @ 2020-09-12 10:49  西瓜君~  阅读(945)  评论(0编辑  收藏  举报