Skip to content

Instantly share code, notes, and snippets.

@vnugent
Created March 6, 2017 21:50
Show Gist options
  • Save vnugent/53a72c675daa8ee86802a9fa88f239e8 to your computer and use it in GitHub Desktop.
Save vnugent/53a72c675daa8ee86802a9fa88f239e8 to your computer and use it in GitHub Desktop.
As of March 2017 there is no command for deleting registry. You may encounter registry deployment and wish to redploy. Run the following commands to delete all registry-related objects:
oc delete clusterrolebinding registry-registry-role
oc delete dc/docker-registry
oc delete svc/docker-registry
oc delete sa/registry
for i in $(oc get secrets | grep registry | awk '{print $1}'); do oc delete secret/$i; done # didn't do this the first few times.
# systemctl restart origin-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment