RELATED LINKS
Github:https://github.com/dotcloud/docker-registry
api:http://docs.docker.com/reference/api/registry_api/
Install Docker-registry
The official gave a command to create container, running Docker run-d-P 5000:5000 registry on a machine equipped with Docker.
This seems to download a lot of things, about 500M, removed from the manual installation process, very convenient.
When you install Ancheng, you can access http://ip:5000 directly to see
"Docker-registry Server (Dev)" (v0.7.3)
Note the installation was successful, more installation details, or configuration please refer to Https://github.com/dotcloud/docker-registry.
Push to private Docker-registry
First, explain the naming rules for mirrors in Docker, such as: Registry.domain.com/mycom/base:latest, which is a complete image name, and the following sections
1, Registry.domain.com:image where the server, if it is the official hub part of the neglect
2, Mycom:namespace, called namespaces, or a classification of your mirrors
3, Base: This is the specific name of the mirror
4, Latest: This is the version number of this image, of course, it may be other, such as 1.1 and so on
Then how to push to the private docker-registry, directly on the command:
Docker tag b750fe79269d 127.0.0.1:5000/mycom/base
B750FE79269D is an ID of an existing image, you can pull from the Docker hub, or build your own image. The following sections refer to the above explanations.
This step is mainly to give image a server address, let Docker know where to push.
And then there's the push, the command:
Docker Push 127.0.0.1:5000/mycom/base
Then wait for the Docker push to complete the pull or run from the private docker-registry, such as:
Docker Run 127.0.0.1:5000/mycom/base
This direct use of native IP, the official use of the best to specify a level two domain name, so that the IP has changed after the use is not affected.
Use of private docker-registry
In fact, http://docs.docker.com/reference/api/registry_api/here has the Docker-registry API,
Just not how to get all the image list methods, and then checked, can be detected by Http://127.0.0.1:5000/v1/search
If you need to set up a page to query all available image, colleagues can always from your docker-registry pull the image he wants, this speed is certainly self-evident, and more importantly, do not worry about failure: thumbsup:.