Replies: 19 comments
-
And just to clarify why Synology devices are singled out; they run their own version of the Docker daemon and it doesn't always behave as expected, giving incorrect or partial information of containers. This makes it hard for watchtower to function correctly on them and we have yet to find a reason for why this is happening. |
Beta Was this translation helpful? Give feedback.
-
You could also run DSM in a virtualbox using xpenology.com! |
Beta Was this translation helpful? Give feedback.
-
Yeah, I couldn't get xpenology working last time I tried it. It also doesn't seem strictly... legal? |
Beta Was this translation helpful? Give feedback.
-
It's a grey area.. from the FAQ:
I think if you don't use any of the services that need a license you'd be fine since it's open source. |
Beta Was this translation helpful? Give feedback.
-
@simskij @piksel I actually own a DS218+ (it's where I run my |
Beta Was this translation helpful? Give feedback.
-
Running on Synology worked fine when starting manually through SSH (as there is no way to bind the docker socket from the UI):
After starting manually through SSH, it does show up in the Synology Docker UI. Sadly, because labels cannot be set from the Synology UI, there is some functionality that I cannot use (like tagging containers to exclude), but alas. For some reason, each restart done by Watchtower causes a "Docker container stopped unexpectedly. Go to Docker for more information" notification in Synology, but I don't mind that very much. Edit: #968 happens for me for one container (Home Assistant) but not for others. I do not know why. Edit 2: I stopped using Synology and migrated to a new device running OpenMediaVault. No issues anymore since. |
Beta Was this translation helpful? Give feedback.
-
So is this the way to start the watchtower on Synology?
|
Beta Was this translation helpful? Give feedback.
-
@halteach Yes, this would be one way. Another way would be to use docker-compose, but this still requires a terminal via SSH. version: "3.8"
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
environment:
- TZ=Europe/Berlin
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_REVIVE_STOPPED=false
- WATCHTOWER_SCHEDULE=0 0 2 * * *
- WATCHTOWER_MONITOR_ONLY=false
- WATCHTOWER_DEBUG=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped This file should be saved into an own folder (e.g. # create and start container
docker-compose up -d
# stop and remove container
docker-compose down |
Beta Was this translation helpful? Give feedback.
-
@newadventure079 have you checked what the "more information" says? We have nothing to go on here. |
Beta Was this translation helpful? Give feedback.
-
I think this is due to the fact that the synology docker implementation is not familiar with managing the docker containers from the outside. I had the same experience for containers which were created with docker compose via terminal. |
Beta Was this translation helpful? Give feedback.
-
@piksel Here is all the info it gives in the log FYI - This didn't used to happen, and it started happening a couple weeks ago or so. I dont think there's been a watchtower update recently so I think it must be from one of the Synology updates. I'm on DSM 7 btw. |
Beta Was this translation helpful? Give feedback.
-
Hello, If I can be some help, just ask 😃 |
Beta Was this translation helpful? Give feedback.
-
Yes, this is a new problem that appeared recently. Maybe because of a watchtower change and/or a Synology Docker update. |
Beta Was this translation helpful? Give feedback.
-
I would like to install Watchtower on my Synology to update Home Assistant automatically. Can everyone helps me how to set it up? |
Beta Was this translation helpful? Give feedback.
-
whats your prblem? You can easily install the container via: Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script als root: docker run -d --name=watchtower |
Beta Was this translation helpful? Give feedback.
-
I also successfully use watchtower on Synology, and there's currently one major caveat - there are some containers that Synology DSM itself creates, and those obviously fail to update:
Since they create it, and docker gives no way to update labels after container creation to exclude them the normal way, this means I get error messages for those every time - I'll file a separate request for having another way to exclude those. |
Beta Was this translation helpful? Give feedback.
-
I am running Watchtower on my Synology without issue. I got around the issue @halteach was having with the The only thing I notice is that I occasionally get the same |
Beta Was this translation helpful? Give feedback.
-
I also am running Watchtower on Synology, as far as I can tell with no issues. I'm still trying to figure out discord notifications, but I think that is layer8 issue more than a Synology issue. I'm still tweaking my settings in a bit of trial and error. Here's my docker-compose.yaml
Here's my log ouput:
Then when the check is performed, I get the following in the logs and in Discord:
With everything in monitor_only, I'm not seeing notifications of an image I know has an update. I'm still working through things... |
Beta Was this translation helpful? Give feedback.
-
None of us, the maintainers of this project, currently have access to any Synology devices. We've tried using the demo Synology provides, but it's just not cutting it.
If anyone in the community, or the companies using Watchtower in their stack, would like to contribute a Synology device - Please let us know! This would definitely make troubleshooting and helping you out more reasonable for us. Until then, the support for Synology will stay on a best effort-basis.
Beta Was this translation helpful? Give feedback.
All reactions