watchtower icon indicating copy to clipboard operation
watchtower copied to clipboard

Do not reuse hostname for new container

Open giggio opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I am running Azure DevOps build agents as containers, and they identify themselves to the server with their hostnames. When the container is recreated the hostname from the container that was replaced is being kept in the new container and it cannot connect back to the server, as there is already a build agent with that name.

Describe the solution you'd like A label that would inform watchtower to do not keep the hostname, but rather generate a new one with the default value (based on the container id).

Describe alternatives you've considered I can't see an alternative, if the hostname can't be recreated I won't be able to use watchtower to update the build agent containers.

giggio avatar Mar 11 '22 03:03 giggio

I link this to https://github.com/containrrr/watchtower/issues/1231 since it's a very niche use that would be better supported by user scripting.

piksel avatar Mar 11 '22 09:03 piksel

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 13 '22 03:06 stale[bot]