Docker
Migrate from Synology Docker to Docker on dedicated server
Export from Synology
Export the container after connecting the Synology via SSH, using the image name as such:
sudo docker save <image_name> > /volume1/<path_to_export>/your_export.tar
That creates a Tar file with the entire container inside but the volumes. Can be quite large.
To export the volumes as well, connect via the webUI, go to Docker app, and select Export Configuration and Data for the desired container to export.
Import from archives
First, we need to import the volumes and such from the export:
sudo docker import your_export.syno.txz <container_name>
or
sudo docker import http://<computer_ip>/your_export.syno.txz <container_name> (see below)
Import the container using the command on the destination host:
sudo cat your_export.tar | sudo docker load
Move file around in LAN
Web server usually runs on /var/www/html so dumping the export there on a intermediate computer allows for the destination host to download it via HTTP:
wget http://<computer_ip>/your_export.tar
Reference: https://bobcares.com/blog/move-docker-container-to-another-host/
No comments to display
No comments to display