[OpenShift]'oc rsh' fails with error "rpc error: code = 2 desc = containerd: container not found"

Solution Verified - Updated -

Issue

  • oc rsh pod is not working.
# oc rsh xyz-2-kmx84
rpc error: code = 2 desc = containerd: container not found
command terminated with exit code 126

# docker exec -it 2aff057a926cbd0ddca2b09179b6bd7f62273c9fefe4492946fa6d859662e95d /bin/bash
rpc error: code = 2 desc = containerd: container not found

Environment

  • OpenShift Container Platform 3.9

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