{"id":2463,"date":"2019-09-21T00:22:42","date_gmt":"2019-09-21T00:22:42","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=2463"},"modified":"2019-09-21T00:23:11","modified_gmt":"2019-09-21T00:23:11","slug":"diy-docker-registry","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=2463","title":{"rendered":"DIY Docker Registry"},"content":{"rendered":"<h3>Work in progress, these steps do not work.<\/h3>\n<h3>Create a persistent storage location for your images<\/h3>\n<pre>sudo mkdir \/mnt\/docker<\/pre>\n<h3>Download and run the docker registry image<\/h3>\n<pre>docker run -d -p 5000:5000 -v \/mnt\/docker:\/tmp\/registry registry:2<\/pre>\n<h3>Tag your images with your registry location<\/h3>\n<p><em>This will make a copy of the existing image with the new name.<\/em><\/p>\n<pre>docker tag &lt;ImageId&gt; &lt;hostname&gt;:&lt;port&gt;\/&lt;image_name&gt;:&lt;tag&gt;<\/pre>\n<h3>Push your images to the registry<\/h3>\n<pre>docker push localhost:5000\/mywebapp<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Work in progress, these steps do not work. Create a persistent storage location for your images sudo mkdir \/mnt\/docker Download and run the docker registry image docker run -d -p 5000:5000 -v \/mnt\/docker:\/tmp\/registry registry:2 Tag your images with your registry location This will make a copy of the existing image with the new name. docker ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=2463\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2463","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2463"}],"version-history":[{"count":4,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2463\/revisions"}],"predecessor-version":[{"id":2467,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2463\/revisions\/2467"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}