{"id":929,"date":"2020-02-19T16:28:11","date_gmt":"2020-02-19T14:28:11","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=929"},"modified":"2020-02-19T16:28:23","modified_gmt":"2020-02-19T14:28:23","slug":"use-local-docker-registry","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=929","title":{"rendered":"Use Local Docker Registry"},"content":{"rendered":"<h1>Start Local Registry<\/h1>\n<pre><code>docker run -d -p 5000:5000 --restart=always --name registry -v \/data\/registry:\/var\/lib\/registry registry:2\n<\/code><\/pre>\n<pre><code>cat \/etc\/docker\/daemon.json  \n{   \n  \"insecure-registries\" : [\"myhost:5000\"]   \n}   <\/code><\/pre>\n<pre><code>docker tag &lt;image&gt; myhost:5000\/&lt;image&gt;  \ndocker push myhost:5000\/&lt;image&gt;<\/code><\/pre>\n<h1>Load Image via SSH<\/h1>\n<pre>cat xxx.img | ssh root@worker02 \"docker load\"<\/pre>\n<h1>Get Only Image Names<\/h1>\n<pre>docker images --format \"{{.Repository}}\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Start Local Registry docker run -d -p 5000:5000 &#8211;restart=always &#8211;name registry -v \/data\/registry:\/var\/lib\/registry registry:2 cat \/etc\/docker\/daemon.json { &#8220;insecure-registries&#8221; : [&#8220;myhost:5000&#8221;] } docker tag &lt;image&gt; myhost:5000\/&lt;image&gt; docker push myhost:5000\/&lt;image&gt; Load Image via SSH cat xxx.img | ssh root@worker02 &#8220;docker load&#8221; Get &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=929\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-929","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=929"}],"version-history":[{"count":1,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/929\/revisions"}],"predecessor-version":[{"id":930,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/929\/revisions\/930"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}