How to use registry

From EN Ikoula wiki
Revision as of 14:46, 29 September 2015 by Ikbot (talk | contribs)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

es:Cómo utilizar el registro fr:Comment utiliser registry


This article has been created by an automatic translation software. You can view the article source here.



That is what Registry

Registry is a container for storing and sharing images docker.

Installation

To create a container registry yor have to type this command :

docker run -p 5000:5000 -v <HOST_DIR>:/tmp/registry-dev registry \<br>
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \<br>
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \

Add an image

If we want to put an image from the machine that contains the container :

docker push localhost :5000/<image_name>



If we want to put an image from an external machine :

docker push <IP> :5000/<image_name>



<IP> corresponds to the ip of the machine that contains the container registry.

Look for an image an image

Are used to search a stored image :

docker search localhost :5000/<image_name>


or

docker search <IP> :5000/<image_name>


If your image contains the name of the creator of the image
Ex : user /Ubuntu

You can use a command to see all images from this user :

docker search localhost :5000/user

Retrieve an image an image

Now that an image is stored in the container registry You can recover it.

If you want to retrieve the picture from the machine that contains the container :

docker pull localhost :5000/<image_name>



If you want to retrieve an image from an external machine :

docker pull <IP>:5000/<image_name>




This article seemed you to be useful ?

0


You are not allowed to post comments.