containrrr/watchtower — reverse-engineered prompt
Reverse engineered prompt
Build me a self hosted tool like Watchtower for my homelab. I want to run it as a Docker container, give it access to my Docker socket, and have it watch my running containers for newer images on Docker Hub or a private registry.
When it finds a newer image, it should pull it, gracefully stop the old container, then start it again with the same settings it already had. Keep the experience simple, with clear logs so I can see what was checked, what was updated, and what failed. Add safe defaults because this is for home servers, media centers, and local dev boxes, not serious production use.
Use Go and make the project easy to build and publish as a container image. Include basic documentation with a quick start command and explain the risks of giving it Docker socket access. Look up current Docker docs online if you need to.
Want more depth? Deep Reverse