시놀로지에서 안전한 개인 Docker Registry 사용하기
Private and Secure Docker Registry on Personal Synology NAS
Prerequisites or Basic Understanding of:
- SSH is enabled on your Synology NAS and basic understanding of how to use it.
- HTTPS is enabled on your Synology NAS, and basic understanding of certificate and key.
- How to use Docker
- (Optional) http basic authentication based on digest (htaccess, htdigest)
Install Docker from Package Center and launch it.
In Docker app, go to registry section (sidebar), and search 'registry', then install the latest version (not the literal 'latest' but the biggest version number).
Before continuing to next step, create following directories inside docker/registry directory.
Copy your https certificate and key into docker/certs/. If you're using Synology's built-in Let's Encrypt certificate generator, find your certificates as below and copy them using SSH. fullchain.pem is your certificate, and privkey.pem is your key.
Create a user using
Now go to Docker app, let's configure registry container and set volume forwarding, environment variables, etc. PATH in env is automatically set by the image, so we don't need to touch it. Use your desired port to forward port 443.
Now run your registry image as a container.
Test it out. (assuming my domain as mydomain.com and port 4443)