How to change the default docker registry from docker.io to my private registry?

By default, if I issue command: sudo docker pull ruby:2.2.1 it will pull from the docker.io offical site by default. Pulling repository docker.io/library/ruby How do I change it to my private registry. That means if I issue sudo docker pull ruby:2.2.1 it will pull from my own private registry, the output is something like: Pulling … Read more

How to get a list of images on docker registry v2

I’m using docker registry v1 and I’m interested in migrating to the newer version, v2. But I need some way to get a list of images present on registry; for example with registry v1 I can execute a GET request to http://myregistry:5000/v1/search? and the result is: { “num_results”: 2, “query”: “”, “results”: [ { “description”: … Read more