{"id":1386,"date":"2016-05-15T10:18:33","date_gmt":"2016-05-15T01:18:33","guid":{"rendered":"http:\/\/naraeon.net\/?p=1386"},"modified":"2024-09-24T22:43:28","modified_gmt":"2024-09-24T13:43:28","slug":"host-docker-registry-in-synology-the-working-way","status":"publish","type":"post","link":"https:\/\/www.naraeon.net\/en\/host-docker-registry-in-synology-the-working-way\/","title":{"rendered":"Host Docker Registry in Synology, The Working Way"},"content":{"rendered":"<p>In most cases, you can just push your image to Docker Hub. But for some reasons like images for work or something, you can&#8217;t open your image to public. In that case, you need a Docker Registry.<\/p>\n<p>This article will help you to run a Docker Registry with your Synology NAS.<\/p>\n<p>Before we start, prepare these things<\/p>\n<ol>\n<li>Synology NAS that can operate Docker Package (From <a href=\"https:\/\/www.synology.com\/en-us\/dsm\/app_packages\/Docker\">Synology<\/a>)<br \/>\n16-series: \u00a0\u00a0 \u00a0RS18016xs+, RS2416+, RS2416RP+, DS916+, DS716+II, DS716+, DS216+<br \/>\n15-series: \u00a0\u00a0 \u00a0RC18015xs+, DS3615xs, DS2415+, DS1815+, DS1515+, RS815+, RS815RP+, DS415+<br \/>\n14-series: \u00a0\u00a0 \u00a0RS3614xs+, RS3614xs, RS3614RPxs, RS2414+, RS2414RP+, RS814+, RS814RP+<br \/>\n13-series: \u00a0\u00a0 \u00a0DS2413+, RS10613xs+, RS3413xs+, DS1813+, DS1513+, DS713+<br \/>\n12-series: \u00a0\u00a0 \u00a0DS3612xs, RS3412xs, RS3412RPxs, RS2212+, RS2212RP+, DS1812+, DS1512+, RS812+, RS812RP+, DS412+, DS712+<br \/>\n11-series: \u00a0\u00a0 \u00a0DS3611xs, DS2411+, RS3411xs, RS3411RPxs, RS2211+, RS2211RP+, DS1511+, DS411+II, DS411+<br \/>\n10-series: \u00a0\u00a0 \u00a0DS1010+, RS810+, RS810RP+, DS710+<\/li>\n<li>Docker Quickstart Terminal for Windows (Using Hyper-V? <a href=\"https:\/\/www.naraeon.net\/docker-quickstart-terminal-hyper-v-guide\/\">Check this article!<\/a>)<\/li>\n<li>SSH Terminal (like <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">PuTTY<\/a>)<\/li>\n<li>DDNS address<\/li>\n<\/ol>\n<p>For first, Install Docker package. Docker Package is in Utility tab.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/dockerpkgen\/#main\" rel=\"attachment wp-att-1412\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1412 size-large\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-dockerpkgen-1024x574.jpg\" width=\"640\" height=\"359\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-dockerpkgen-1024x574.jpg 1024w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-dockerpkgen-300x168.jpg 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-dockerpkgen-768x430.jpg 768w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-dockerpkgen.jpg 1297w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Run Docker, and click Registry tab. Then search registry.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/registryen\/#main\" rel=\"attachment wp-att-1413\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1413 size-large\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-registryen-1024x590.png\" width=\"640\" height=\"369\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-registryen-1024x590.png 1024w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-registryen-300x173.png 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-registryen-768x442.png 768w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-registryen.png 1252w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Double-click registry, and scroll tag combobox to the very bottom. Don&#8217;t use latest because it&#8217;s actually not &#8216;latest&#8217; but some old one.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/latesten\/#main\" rel=\"attachment wp-att-1414\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1414 size-large\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-latesten-1024x608.png\" width=\"640\" height=\"380\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-latesten-1024x608.png 1024w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-latesten-300x178.png 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-latesten-768x456.png 768w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-latesten.png 1250w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Click Image tab. Double-click registry:(Selected Version). Put name and local port to use as you want.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/porten\/#main\" rel=\"attachment wp-att-1415\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1415 size-large\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-porten-1024x587.jpg\" width=\"640\" height=\"367\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-porten-1024x587.jpg 1024w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-porten-300x172.jpg 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-porten-768x440.jpg 768w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-porten.jpg 1253w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Just click next on Step 2, and click Advanced Settings on Summary stage. Mount some folder to save images as \/tmp\/registry-dev, \/tmp\/registry\/, \/var\/lib\/registry. It&#8217;s version specific that what path is the real saving path among three of them. Be sure to uncheck Read-Only checkbox.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/advsten\/#main\" rel=\"attachment wp-att-1416\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1416 size-full\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-advsten.png\" width=\"815\" height=\"691\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-advsten.png 815w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-advsten-300x254.png 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-advsten-768x651.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/a><\/p>\n<p>Connect to NAS with SSH, and push vi \/var\/packages\/Docker\/scripts\/start-stop-status to open setting file, and push \/#start docker to search.<br \/>\nThen press i to change to insert mode. Change &#8220;${DockerBin}&#8221; -d &#038;<br \/>\nTo &#8220;${DockerBin}&#8221; &#8211;insecure-registry (My DDNS address):(Port set on Step 1) -d &#038;<\/p>\n<p>Press ESC key to quit insert mode. Press :wq and enter to close vi.<\/p>\n<p>After these operations with SSH, Go to Package Center and restart Docker Package.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/pkgctren\/#main\" rel=\"attachment wp-att-1417\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1417 size-large\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-pkgctren-1024x576.jpg\" width=\"640\" height=\"360\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-pkgctren-1024x576.jpg 1024w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-pkgctren-300x169.jpg 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-pkgctren-768x432.jpg 768w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-pkgctren.jpg 1295w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Lastly, click Container tab and start your registry container.<\/p>\n<p><a href=\"https:\/\/www.naraeon.net\/host-docker-registry-in-synology-the-working-way\/ctren\/#main\" rel=\"attachment wp-att-1418\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1418 size-large\" src=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-ctren-1024x586.png\" width=\"640\" height=\"366\" srcset=\"https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-ctren-1024x586.png 1024w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-ctren-300x172.png 300w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-ctren-768x439.png 768w, https:\/\/www.naraeon.net\/wp-content\/uploads\/2016\/12\/wsi-imageoptim-ctren.png 1252w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Unfortunately you only can pull your pushed images through SSH on your Synology NAS. Synology DSM 5.x can&#8217;t communicate properly with latest insecure registries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In most cases, you can just push your image to Docker Hub. But for some reasons like images for work or something, you can&#8217;t open your image to public. In that case, you need a Docker Registry. This article will help you to run a Docker Registry with your Synology NAS. Before we start, prepare [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[138],"tags":[125,130,126,131],"class_list":["post-1386","post","type-post","status-publish","format-standard","hentry","category-docker-tip","tag-docker","tag-synology","tag-126","tag-131"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["kr","en"],"languages":{"kr":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts\/1386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/comments?post=1386"}],"version-history":[{"count":11,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts\/1386\/revisions"}],"predecessor-version":[{"id":1851,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/posts\/1386\/revisions\/1851"}],"wp:attachment":[{"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/media?parent=1386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/categories?post=1386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.naraeon.net\/en\/wp-json\/wp\/v2\/tags?post=1386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}