Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use a private Dockerhub image from my Synology NAS

Usually I have a public Dockerfile that I build with public DockerHub repository (songkong/songkong), then I can run it on my Synology by just searching for the tag in the registry

Public Image

but I am making some changes in my private DockerHub repo (songkong/songkongdockerdev) before public release. I have built image okay in Dockerhub, and I guess I use Image/Add from Url in Synology

enter image description here

but I cannot get the syntax correct for the Hub Page or Repository field, I tried a few things such as

  • https://hub.docker.com/repository/docker/songkong/songkongdockerdev
  • songkong/songkongdockerdev
  • songkongdockerdev/latest

what should it be ?

like image 725
Paul Taylor Avatar asked Apr 15 '20 14:04

Paul Taylor


3 Answers

I had the same problem for a long time.

Instead of https://hub.docker.com/repository/docker/songkong/songkongdockerdev use https://hub.docker.com/r/songkong/songkongdockerdev

Fill in your docker hub username and password.

like image 76
Robby De Laet Avatar answered Oct 23 '22 12:10

Robby De Laet


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

root@synology:~# docker pull mcr.microsoft.com/powershell
Using default tag: latest
latest: Pulling from powershell
7595c8c21622: Pull complete
d13af8ca898f: Pull complete
70799171ddba: Pull complete
b6c12202c5ef: Pull complete
6c95148a5c40: Pull complete
Digest: sha256:e5fd412f741be3eaab244635f73bbec9b44f4546f3182b4cc5fa9dc90360b1b8
Status: Downloaded newer image for mcr.microsoft.com/powershell:latest
like image 22
Gregory Suvalian Avatar answered Oct 23 '22 14:10

Gregory Suvalian


This format worked for me in Docker Synology GUI under docker - images:

URL: https://registry.hub.docker.com/r/{accountname}/{reponame}/

then your username & password

like image 2
Rick Penabella Avatar answered Oct 23 '22 14:10

Rick Penabella