Unable to prune images in OpenShift due to "directory not empty" in docker registry logs
Issue
Running oadm prune images --confirm returns an error:
error: error removing blob sha256:a17170b5bcf7ebc525a6f1937646219c21735f1cfc496072ff6c29345867a940 from the registry 172.30.74.39:5000: 500 Internal Server Error
The docker-registry pod logs show the following at the time of the issue:
time="2018-03-06T00:48:29.064529793Z" level=error msg="response completed with error" err.code=unknown err.detail="error deleting blob \"sha256:a17170b5bcf7ebc525a6f1937646219c21735f1cfc496072ff6c29345867a940\": filesystem: remove /registry/docker/registry/v2/blobs/sha256/a1/a17170b5bcf7ebc525a6f1937646219c21735f1cfc496072ff6c29345867a940: directory not empty" err.message="unknown error" go.version=go1.7.6 http.request.host="172.30.74.39:5000" http.request.id=ce811f17-4ba3-4107-873f-5d51a982ae42 http.request.method=DELETE http.request.remoteaddr="10.1.0.1:42228" http.request.uri="/admin/blobs/sha256:a17170b5bcf7ebc525a6f1937646219c21735f1cfc496072ff6c29345867a940" http.request.useragent="oadm/v1.5.2+43a9be4 (linux/amd64) kubernetes/43a9be4" http.response.contenttype="application/json; charset=utf-8" http.response.duration=27.448724ms http.response.status=500 http.response.written=316 instance.id=d516d1ec-4732-4610-9ee9-3732e9fd55c3 openshift.auth.user=test openshift.auth.userid=8104e55a-8769-11e7-ad78-00505690fc98 openshift.logger=registry vars.digest="sha256:a17170b5bcf7ebc525a6f1937646219c21735f1cfc496072ff6c29345867a940"
Environment
- Red Hat OpenShift Container Platform 3.x
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.
