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
Using a Z-Wave or ZigBee stick on Synology DSM for use with HomeAssistant and Docker Published by DK on April 15, 2019 If you want to run or are already running HomeAssistant on your Synology NAS DSM 6.2, it’s possible that you’d want to use a Z-Wave or ZigBee stick to communicate with their respective devices. Since in the past I always had troubles and hours of work fixing my installation after an update I would like to ask if this would be the correct workflow on a synology running the openhab docker image. I am on 2.5.0 and would like upgrade to latest stable (2.5.3?) to see if some of my websocket errors are solved. My things are created by paperui only. Used addons are defined in conf. Updated Docker Daemon to version 18.09.8. Updated the link to Docker Hub image. Fixed an issue where Docker might be stuck in loading status when users try to delete images of running/stopped containers. Fixed an issue where Docker cannot be installed on an ext4 volume on Synology NAS models with Denverton platform. I chose GitList, which is fully available on the official hub. The overall process consists of four steps: 1. Download the GitList image to your Synology. Search for the keyword 'GitList' on the Registry tab in the Docker application and download it. If you need more instructions, check this. Find a required docker run command. You can do it properly from terminal on Synology bypassing GUI limitations. For example to pull from custom registry (in this case Microsoft one) you can execute it like you would in docker cli.
- 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+ - Docker Quickstart Terminal for Windows (Using Hyper-V? Check this article!)
- SSH Terminal (like PuTTY)
- DDNS address
For first, Install Docker package. Docker Package is in Utility tab.
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:
- Docker Quickstart Terminal @ Hyper-V Guide This is the result. Inner window is running Hyper-V VM,...
- Insecure registry @ Docker Toolbox, The Easier Way Open C:Program FilesDocker Toolboxstart.sh and find “${DOCKER_MACHINE}” create -d Then...
A lightweight software containerization solution powered by Docker Inc. By leveraging this cutting-edge technology, Synology delivers even more packages for seamless deployment on your NAS, such as Redmine or GitLab.
More possibilities in DSM
Docker is a lightweight virtualization application that gives you the ability to run thousands of containers created by developers from all over the world on DSM. The hugely popular built-in image repository, Docker Hub, allows you to find shared applications from other talented developers.
Flexible container deployment
Deploy Docker containers at will and facilitate the maximum utilization of your Synology NAS.
Docker Hub Synology Software
Container import / export
Support for container import / export makes backup and transfer of containers simple and easy.
Docker® Hub Registry
The built-in Docker® Hub Registry enables you to directly search for thousands of applications from developers around the world.
At-a-glance resource monitoring
Synology Docker Hub
Docker Hub Synology Free
The overview provides a clear dashboard including the NAS CPU, memory and individual container resource usage.