Watchtower spawning copies of itself

Also I looked into watchtower documentation and see we are loose important argument --cleanup

Cleanup

Removes old images after updating. When this flag is specified, watchtower will remove the old image after restarting a container with a new image. Use this option to prevent the accumulation of orphaned images on your system as containers are updated.

I propose adding this argument to the our documentation:
docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s --interval 21600 --cleanup

3 Likes