When installing the standard Watchtower container onto DSM 6.0 with Docker, I ran into 2 issues which caused the container not to run and constantly restart itself (see container logs for the error messages):
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.23
Both issues have a solution. First being that an older docker image has to be used, second being that DSM UI somewhere filters out a file mapping when creating the container.
Fix for issue 1: Create a symlink
sudo ln -s /var/run/docker.sock /volume1/docker/docker.sock
Fix for issue 2: Create a new docker container
sudo docker run -d --name watchtower-new -v /volume1/docker/docker.sock:/var/run/docker.sock centurylink/watchtower --interval 82800 --cleanup
No comments:
Post a Comment