Facing "containerd: container not started command terminated with exit code 126" error while doing oc rsh to any pod.

Solution Verified - Updated -

Issue

  • The oc rsh command fails with command terminated with exit code 126.
  • When trying to rsh into pod it fails with below error:
 $ oc rsh httpd-5sgd7
rpc error: code = 2 desc = containerd: container not started
command terminated with exit code 126

Environment

  • Red Hat OpenShift Container Platform 3.11

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