docker exec or oc rsh fails with oci error: Connection reset by peer

Solution Verified - Updated -


  • oc rsh fail with oci error "connection reset by peer" and oc exec without -it has panic
  • The following error is seen when we run docker exec ... or oc rsh:
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "process_linux.go:110: decoding init error from pipe caused \"read parent: connection reset by peer\"


  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux Atomic Host 7.6.1
  • OpenShift Container Platform, v3.9+
  • docker, 1.13.1-84.git07f3374.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In