{"id":223,"date":"2020-04-07T06:45:59","date_gmt":"2020-04-07T06:45:59","guid":{"rendered":"http:\/\/shresthabrijan.com.np\/?p=223"},"modified":"2020-04-07T09:53:24","modified_gmt":"2020-04-07T09:53:24","slug":"install-docker-registry-in-local","status":"publish","type":"post","link":"https:\/\/shresthabrijan.com.np\/?p=223","title":{"rendered":"Install docker registry in local"},"content":{"rendered":"\n<p>Docker hub is an online cloud service which provides a platform for users to get images for container as well as for sharing their images to other users. This is a great way to import or export images but some users might want an offline registry service in their local machine. Docker provides a way for users to do this through a ready to be hosted docker image itself.<br><br>To install docker registry in local machine, run following command in docker client:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ docker run -d -p 5000:5000 --restart=always --name registry registry:2<\/pre>\n\n\n\n<p>To setup authentication and TLS for secure connection, visit the official docker <a href=\"https:\/\/docs.docker.com\/registry\/deploying\/\">page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker hub is an online cloud service which provides a platform for users to get images for container as well as for sharing their images to other users. This is a great way to import or export images but some users might want an offline registry service in their local machine. Docker provides a way [&hellip;]<\/p>\n<div class=\"read-more\"><a href=\"https:\/\/shresthabrijan.com.np\/?p=223\" class=\"btn btn-primary btn-lg\">Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-system-administration"],"_links":{"self":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=223"}],"version-history":[{"count":1,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}