Synology: How to Clean Docker

Synology How to Clean Docker

Many docker images and containers that you install on your Synology NAS following various guides on the web leave traces that should be deleted so that future installations may work flawlessly. Here on mariushosting you can find a varied list of docker images to install on your NAS, but, if you ever decide to uninstall them for whatever reason, remember that it is a good practice to uninstall them properly so that, in the future, you do not experience any problems if you want to install them back from scratch.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

InstallĀ Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.

  • STEP 3

First of all, always remember to stop all the containers you no longer need. If you don’t stop them first, you can’t delete them.

  • STEP 4

Log into Portainer. In the menu on the left click on Images. You will find a list of images marked in orange with the word “Unused” – these are the images that you no longer use. Select all the images with the Unused tag and click the red Remove button. Follow the instructions in the image below.

Synology NAS Clean Docker 1

Once you click the red remove button, all images tagged Unused will be automatically deleted.

Synology NAS Clean Docker 2

  • STEP 5

Navigate to “Networks” and make sure there are no other networks created by images you no longer use. Select and click “Remove” for all networks of images you no longer use.

Synology NAS Clean Docker 3

  • STEP 6

Navigate to “Volumes“. Select all volumes tagged “Unused” and click the red Remove button. Follow the instructions in the image below.

Synology NAS Clean Docker 4

Once you click the red Remove button, all volumes created by various images you no longer use will be automatically deleted.

Synology NAS Clean Docker 5

  • STEP 7

Remove all folders in File Station that you no longer use, or have used in the past to run specific docker images. Just delete them and recreate from scratch if you need a specific image to be reinstalled again.

Note: Portainer becomes a must-have if you have Docker installed on your Synology NAS.
Note: One of the main advantages of removing images you no longer use is that it will free up space on your NAS.

This post was updated on Thursday / May 26th, 2022 at 7:09 PM