Cleaning up private docker registry
The solution to cleaning the unused docker registry layers is not straightforward, there is nothing readily available from docker. As more and more docker layers are pushed and tagged, it may be possible that there are image layers that may not be required. These unnecessary layers will consume a lot of storage space. This page describes the way to delete unused layers without disturbing the registry. I am going to explain how to clean up unused layers from docker registry using HTTP API V2 Docker HTTP API V2 More about HTTP API V2 The current version of the docker provides an option to interact with the images in the remote private registry using HTTP API version 2. Few useful Digest APIs List all the repositories available in the private registry CATALOG $ curl reg-server:5000/v2/_catalog Output ------ { "repositories" :[ "alpine","1_ubuntu_16.04" , "centos" , "centos6-build-test" , "centos6-build-qa...