Docker Hub Synology



Hub

  1. Synology Docker Hub Private
  2. Synology Docker Hub Url

Docker is only a year old, but Synology made it available since DSM 5.2 So I am going to fly through this with straight-forward screenshots, because it is pretty “dummy proof” and the hard part was understanding how to get Docker working on my NAS, but it was not the whale’s fault and rather the projects I found online.

  • Setup Docker+Git on your Synology NAS. First, we need to make some changes to our Synology NAS setup. Go to the Package Center of your Synology NAS and install the following packages: Docker; Git Server (don't worry, we're not going to host git) Install nano (if you don't want to use Vim). Projects directory.
  • This profile has not starred any content. Overview What is a Container. Product Overview. Product Offerings. Docker Desktop Docker Hub.

In most cases, you can just push your image to Docker Hub. But for some reasons like images for work or something, you can’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 these things

  1. Synology NAS that can operate Docker Package (From Synology)
    16-series: RS18016xs+, RS2416+, RS2416RP+, DS916+, DS716+II, DS716+, DS216+
    15-series: RC18015xs+, DS3615xs, DS2415+, DS1815+, DS1515+, RS815+, RS815RP+, DS415+
    14-series: RS3614xs+, RS3614xs, RS3614RPxs, RS2414+, RS2414RP+, RS814+, RS814RP+
    13-series: DS2413+, RS10613xs+, RS3413xs+, DS1813+, DS1513+, DS713+
    12-series: DS3612xs, RS3412xs, RS3412RPxs, RS2212+, RS2212RP+, DS1812+, DS1512+, RS812+, RS812RP+, DS412+, DS712+
    11-series: DS3611xs, DS2411+, RS3411xs, RS3411RPxs, RS2211+, RS2211RP+, DS1511+, DS411+II, DS411+
    10-series: DS1010+, RS810+, RS810RP+, DS710+
  2. Docker Quickstart Terminal for Windows (Using Hyper-V? Check this article!)
  3. SSH Terminal (like PuTTY)
  4. DDNS address

For first, Install Docker package. Docker Package is in Utility tab.

Synology docker hub private

Run Docker, and click Registry tab. Then search registry.

Double-click registry, and scroll tag combobox to the very bottom. Don’t use latest because it’s actually not ‘latest’ but some old one.

Click Image tab. Double-click registry:(Selected Version). Put name and local port to use as you want.

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’s version specific that what path is the real saving path among three of them. Be sure to uncheck Read-Only checkbox.

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.
Then press i to change to insert mode. Change “${DockerBin}” -d &
To “${DockerBin}” –insecure-registry (My DDNS address):(Port set on Step 1) -d &

Press ESC key to quit insert mode. Press :wq and enter to close vi.

After these operations with SSH, Go to Package Center and restart Docker Package.

Lastly, click Container tab and start your registry container.

Unfortunately you only can pull your pushed images through SSH on your Synology NAS. Synology DSM 5.x can’t communicate properly with latest insecure registries.

Related posts:

  1. Docker Quickstart Terminal @ Hyper-V Guide This is the result. Inner window is running Hyper-V VM,...
  2. Insecure registry @ Docker Toolbox, The Easier Way Open C:Program FilesDocker Toolboxstart.sh and find “${DOCKER_MACHINE}” create -d Then...

Synology Docker Hub Private

Instructions

  • Save the docker-compose.yml and config.yml in the same directory on one of your volumes on the NAS.
  • SSH in and use docker-compose up -d
  • Test the mirror with curl --head http://NAS-IP:55000
  • Start up docker daemons with the following option or put this in the daemon config file or copy into Docker for Mac/Windows settings.--registry-mirror=http://NAS-IP:55000
  • Pull an image and then check that it is cached in your mirror with curl http://NAS-IP:55000/v2/_catalog
    • or check that a large image isn't slow after the first pull :)

Synology Docker Hub Url

Notes

  • This is all based on https://docs.docker.com/registry/recipes/mirror/