Skip to content

Watchtower update created hundreds of container instances #133

@ginkel

Description

@ginkel

Describe the bug

Hi there,

with yesterday's update to 2.3.1 something went horribly wrong: On all of my servers I see > 1.000 watchtower container instances in the "Created" state and one instance that is spinning and immediately exits again when trying to start up:

time="2025-03-29T08:39:15Z" level=info msg="Found multiple running watchtower instances. Cleaning up."
time="2025-03-29T08:39:15Z" level=info msg="Stopping /watchtower (44c86fd4618a) with SIGTERM"

$ docker ps -a | grep watchtower | wc -l 
1175

$ docker ps -a | grep watchtower

fcdcfd7f3775   beatkind/watchtower:latest                                       "/watchtower --http-…"   10 hours ago   Created                                                                                                                                                                                                                                                   HAJsXGyIpARBfXjfVFJAiGdkSVAXzWZQ

[...]

265b6e09f9ea   beatkind/watchtower:latest                                       "/watchtower --http-…"   20 hours ago   Created                                                                                                                                                                                                                                             XncGLIAlWkBpKygXvXqDLHPBddGluvdh
64a301b58c22   beatkind/watchtower:latest                                       "/watchtower --http-…"   20 hours ago   Created                                                                                                                                                                                                                                             laiRTvQkJsVVTlZVcmWOibRzHkvkElXj
c7991b109e2a   beatkind/watchtower:latest                                       "/watchtower --http-…"   20 hours ago   Created                                                                                                                                                                                                                                             mvKBnpzZdqiGKXxJvcBwGxdOoFYOLPwk
44c86fd4618a   beatkind/watchtower:latest                                       "/watchtower --http-…"   20 hours ago   Exited (2) 4 seconds ago   

This happened on all of my servers running Ubuntu 24.04 or 22.04 and Docker 27.2.1.

Any ideas?

Thanks,
Thilo

Steps to reproduce

  1. Wait for Watchtower to perform an auto-update

Expected behavior

Watchtower updates itself without leaving hundreds of broken container behind ;-)

Screenshots

No response

Environment

  • Ubuntu 24.04 / 22.04
  • x86_64 and arm64
  • Docker 27.2.1

Your logs

See above

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions