I wanted to give Watchtower a shot, so I started its container (v2tec-watchtower1) and immediately it shut down...
"
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
All I did was download/launch/start. Clearly, I'm missing something here. Ideas?
FWIW I'm on an unsupported
418play, but my other containers seem content.
I've been using Watchtower for a while without problems, so you MIGHT want to give it a shot despite the warnings, and if you have nothing critical whose mangling would be more than a mild nuisance for you.
I suspect that your installation issue (via SSH) came because you were logged in as admin, and didn't sudo to root before running the installation command.
So, if you want to give it a try, you don't need to search for, or download, the Watchtower container. The commands below download and installs it, and create a docker.sock repository.
Given the warnings...you might not. "Only the BRAVEST lions go there...," as they say.
log in via ssh. sudo to root (same password as admin) then run this command:
ln -s /var/run/docker.sock /volume1/docker/docker.sock
and then this command:
docker run -d --name watchtower -v /volume1/docker/docker.sock:/var/run/docker.sock containrrr/watchtower --interval 82800 --cleanup
For both commands, be mindful of the spacing.
There are very similar (but slightly different) install commands out there on the web....all I can say is, this is what worked for me.
then open up docker and move the slider on the watchtower container to the Run position.
Keep an eye on it for a minute; if all is good, it won't turn itself back off immediately.