File removal with oc debug is not working as expected

Solution Verified - Updated -

Issue

  • How can I run a deletion command in a debug container? Tried the following but non of the options is working:
oc debug dc/foo-bar -- "rm -rf src;"
oc debug dc/foo-bar -- "/bin/rm -rf src;"
oc debug dc/foo-bar -- "/bin/rm -rf /go/src;"
oc debug dc/foo-bar -- "/bin/rm -rf /go/*"

Environment

  • Red Hat OpenShift Container Platform 3

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