Error when trying to prune images in OpenShift: "You must use a client config with a token"
Issue
-
In OpenShift Container Platform 3.x, while pruning images using the
system:adminuser, the following error occurs:# oc adm prune images --confirm=true error: You must use a client config with a token -
In OpenShift Container Platform 4.x, while pruning images using the
system:adminuser or thekubeconfigfile that 4.x installation provides, the following error occurs:# oc adm prune images --confirm=true error: You must use a client config with a token
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 3
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.