How to Update Docker Containers on a Synology NAS (with pictures)
Without losing your data.
Instructions on how to update Docker containers with a Synology NAS. I’ve been using Partkeepr for inventory management in an SMT line, and deployed it through Docker on a Synology DS220+ NAS, (which also runs data collection for the rest of the factory). Here’s how to do it with any container.
Just the Instructions
- Download new image from registry
- Stop the container
- Clear the container
- Start the container
The instructions again, but with pictures
Download the new image from the registry
0. Open Docker by clicking the Main Menu in the corner and then clicking Docker
- Click Registry
- Type in the name of the container to update and Search
- Click Download
4. Select the Tag
5. Wait for the system to finish the download, it will display a message in the corner, or in the notifications area.
This overwrites the old image with the new version. Now, to re-launch the same container with the new image.
Clear and Restart the Container
6. Click Container
7. Stop the container with the switch on the right
8. Once stopped, stopped, click Action and Clear
9. Restart the container with the same switch on the right. Docker loads the updated image when restarting the container.
Done. This method preserves any settings and data the container creates, and just updates the image the container runs.