Difference between revisions of "How to use registry"
Line 1: | Line 1: | ||
+ | <span data-link_translate_pt_title="Como usar o registro" data-link_translate_pt_url="Como+usar+o+registro"></span>[[:pt:Como usar o registro]][[pt:Como usar o registro]] | ||
<span data-link_translate_es_title="Cómo utilizar el registro" data-link_translate_es_url="C%C3%B3mo+utilizar+el+registro"></span>[[:es:Cómo utilizar el registro]][[es:Cómo utilizar el registro]] | <span data-link_translate_es_title="Cómo utilizar el registro" data-link_translate_es_url="C%C3%B3mo+utilizar+el+registro"></span>[[:es:Cómo utilizar el registro]][[es:Cómo utilizar el registro]] | ||
<span data-link_translate_fr_title="Comment utiliser registry" data-link_translate_fr_url="Comment_utiliser_registry"></span>[[:fr:Comment utiliser registry]][[fr:Comment utiliser registry]] | <span data-link_translate_fr_title="Comment utiliser registry" data-link_translate_fr_url="Comment_utiliser_registry"></span>[[:fr:Comment utiliser registry]][[fr:Comment utiliser registry]] |
Revision as of 17:04, 29 September 2015
pt:Como usar o registro 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 ?
Enable comment auto-refresher