Docker on Synology
Upload image as file
- If you want to install using file, first create that file
docker save -o myproject_image.tar myproject:latest
- Then login to Synology DSM and upload file to a folder
- Open Docker and add new from file
Pull private docker image
- SSH into NAS and login into docker
ssh admin@192.168.1.200 -p22
$ sudo docker images
$ sudo docker login
$ sudo docker pull weili0505/xuan
Image Volume Mapping
- After installing docker, a shared folder called docker will appear
- Create a folder called /xuanapi/images inside it
- When deploying an image, specify the mapping of images folder