Cleaning up docker space
Issue
- BZ1292845
- Cleaning up docker space
- Deleting a large number of images and they are deleted successfully from
etcdbut not from registry storage - Manually deleting an image with
oc delete image <sha256:image-id>only removes the image frometcd, but not from the registry’s storage." - What is the best way to clean up images and resources.
- When examining our docker storage pool via the
vgsorvgdisplaycommands, it shows no space available: - Running below commands did not free up any space.
oc adm prune deployments --keep-complete=5 --confirm
oc adm prune builds --orphans --keep-failed=1 -keep-complete=5 --confirm
oc adm prune images --keep-tag-revisions=3 --keep-younger-than=400m --confirm
- Can not figure out how to clean up the actual
imagefs. - Docker space (docker
vg) is constantly building up and event the cleanup playbook does not fix it.
Environment
- Red Hat OpenShift Container Platform 3.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
