"oc rsh" fails with "exec failed: cannot exec a container that has run and stopped"

Solution Verified - Updated -

Issue

  • When executing oc rsh or docker exec to a certain container running on OpenShift Container Platform, the following error is shown:

    # docker exec -it 206f0c502ada bash
    rpc error: code = 2 desc = oci runtime error: exec failed: cannot exec a container that has run and stopped
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11
  • Package docker-1.13.1-108

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content