Synology: How to Export and Import a Docker Container

Synology How to Export and Import a Docker Container

If you have been following mariushosting’s docker guides for your Synology NAS, you have surely wondered how to back up your beloved containers in case one day something goes wrong. In today’s guide I will explain to you how to back up your docker containers with all of your personal configurations in a simple and comprehensive way.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Download Synology Hyper Backup from the Package Center and back up the Docker Shared Folder in File Station.

  • STEP 3

Open your Docker package. In the left menu select Container. Select the container you want to Export then click on the Settings tab and, in the dropdown menu, click Export. Follow the instructions in the image below.

1 Synology NAS backup Docker Container

  • STEP 4

After you click Export, a new pop-up window will open. Select “Export container contents and settings“. Select Export to Diskstation or Export into your computer. Click Export. I prefer to save my container contents and settings in a Shared Folder in my NAS so I can easily back up everything with the Synology Hyper Backup package. Follow the instructions in the image below.

2 Synology NAS backup Docker Container

  • STEP 5

Once you click Export on STEP 4, your container will be labeled “Exporting” instead of “Running“. Follow the instructions in the image below.

3 Synology NAS backup Docker Container

  • STEP 6

After the export is finished, you will receive a Notification message in your DSM.
Note: Exporting a container may take some time depending on your NAS model.

4 Synology NAS backup Docker Container

  • STEP 7

After the export if finished, you will see the container automatically saved in a .txz format in the Shared Folder you have previously selected on STEP 4.

5 Synology NAS backup Docker Container

  • STEP 8

Now, if you lose your container settings you won’t have to worry anymore because you can import your backup. Open your Docker package and, in the left panel, click on Container, then select the Settings tab and Import from the dropdown menu. Follow the instructions in the image below.

6 Synology NAS backup Docker Container

  • STEP 9

After you click Import, a new pop-up window will open. Select your .txz container from your NAS or upload it from your PC, depending on where you have saved it.

7 Synology NAS backup Docker Container

  • STEP 10

Click OK. Follow the instructions in the image below.

8 Synology NAS backup Docker Container

  • STEP 11

Done! The last thing left to do is to start the container.

9 Synology NAS backup Docker Container

Note: I recommend you create a new Shared Folder for your Docker container backups.
Note: I recommend to you to backup your docker Shared Folder in File Station using Synology Hyper Backup package.

This post was updated on Wednesday / March 3rd, 2021 at 9:51 AM