PR merged.
So it looks like the OCP builds have the binary under /usr/bin. Could you try the prune command once again with a slight modification: pod="$(oc -n default get pods -l deploymentconfig=docker-registry \ -o jsonpath=$'{.items[0].metadata.name}\n')" oc -n default exec -i -t "${pod}" -- /usr/bin/dockerregistry -prune=delete ?
@miminar, it works well now, the extended steps also passed, and pls update the doc above for it if necessary, thx the registry read-only set,unset works well and run the hard prune successfully: # pod="$(oc -n default get pods -l deploymentconfig=docker-registry \ > -o jsonpath=$'{.items[0].metadata.name}\n')" [root@qe-geliu-34master-registry-router-nfs-1 ~]# oc -n default exec -i -t "${pod}" -- /usr/bin/dockerregistry -prune=check WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_ADDR WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PROTO WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_HOST WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT_REGISTRY_CONSOLE Would delete 11 blobs Would free up 3.028 MiB of disk space Use -prune=delete to actually delete the data [root@qe-geliu-34master-registry-router-nfs-1 ~]# oc -n default exec -i -t "${pod}" -- /usr/bin/dockerregistry -prune=delete WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_ADDR WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PROTO WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_HOST WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT_REGISTRY_CONSOLE Deleted 11 blobs Freed up 3.028 MiB of disk space
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1828
*** Bug 1499314 has been marked as a duplicate of this bug. ***