Featured image of post Updating Docker Containers on Synology DSM

Updating Docker Containers on Synology DSM

My method for keeping things up to date.

Overview

Personally, I think the Synology DSM Docker implementation is awesome. It’s the UI that I wish Docker Desktop on macOS was (with a few tweaks).

It’s a super simple interface to use if you are new to Docker. However, if you are new to Docker, it can be a little confusing to work out how to update a container/image.

Here I’ll outline the steps I use (mostly for myself so I don’t forget!) to update the containers you have running on your Synology.

For reference I was originally running DSM 6.x when I wrote this, but these same steps have since worked successfully on DSM 7.x


Steps

  1. Login to your Synology DSM web interface
  2. Open Docker
  3. Find the container you want to update in the ‘Container’ tab and note the name of the image
    (e.g. linuxserver/booksonic)
  4. Click on the ‘Registry’ tab and search for the image you noted in Step 3.
  5. Double click the image and download the ’latest’ using the popup.
  6. Once the download is complete, in the ‘Container’ tab, stop the original container from Step 3.
  7. Edit the name of the container to include something new, like “-backup”
    (e.g. booksonic-backup).
  8. Right click the container and choose “Settings > Duplicate settings”. Pick a name for the new container (you can use the original name, e.g. booksonic). This will create a new container using the new (latest) Docker image.
  9. Start the new container and verify that the application functions as expected.

You will note that if you specified a port in the orignal container config, since it is “in use” Docker will pick a random port to use - View the config by viewing the details of the running container to find this.

  1. Once you are happy, you can remove the "-backup" container.
  2. You will need to specify a port in the new container config if you were using one previously. If something goes wrong, you can revert to the "-backup" container.
Built with Hugo
Theme Stack designed by Jimmy