Unable to use oc patch command

Solution Verified - Updated -


The oc patch command is not working, not patched message after executing #oc patch command.

oc patch dc/docker-registry -p '{"spec": {"template": {"spec": {"containers":[{
>     "name":"registry",
>     "livenessProbe":  {"httpGet": {"scheme":"HTTPS"}}
>   }]}}}}'
deploymentconfig "docker-registry" not patched


  • OpenShift Container Platform
    • 3.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In