containrrr / watchtower

A process for automating Docker container base image updates.
https://containrrr.dev/watchtower/
Apache License 2.0
19.65k stars 865 forks source link

"Watchtower HTTP API skipped." #2052

Open williamtrelawny opened 1 day ago

williamtrelawny commented 1 day ago

Describe the bug

Watchtower HTTP API is not accessible. Running docker run with --debug reveals this message: level=debug msg="Watchtower HTTP API skipped." curl returns curl: (56) Recv failure: Connection reset by peer error. My user is part of the docker group, so binding to the Docker socket shouldn't be a problem. I also ran the below with sudo just to be sure, still did not work.

Here's my setup:

docker run --detach --name watchtower -p 0.0.0.0:8080:8080 --volume /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped -e WATCHTOWER_MONITOR_ONLY -e WATCHTOWER_HTTP_API_UPDATE containrrr/watchtower --debug

My curl command & output:

user@host:~$ curl -v localhost:8080/v1/update
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /v1/update HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.88.1
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

Steps to reproduce

  1. Issue docker run command provided above
  2. Observe watchtower container log reporting "Watchtower HTTP API skipped."
  3. curl attempt above fails

Expected behavior

Should be able to curl the Watchtower HTTP API endpoint per docs

Screenshots

No response

Environment

Your logs

time="2024-11-21T16:00:02Z" level=debug msg="Sleeping for a second to ensure the docker api client has been properly initialized."
time="2024-11-21T16:00:03Z" level=debug msg="Making sure everything is sane before starting"
time="2024-11-21T16:00:03Z" level=debug msg="Retrieving running containers"
time="2024-11-21T16:00:03Z" level=debug msg="There are no additional watchtower containers"
time="2024-11-21T16:00:03Z" level=debug msg="Watchtower HTTP API skipped."
time="2024-11-21T16:00:03Z" level=info msg="Watchtower 1.7.1"
time="2024-11-21T16:00:03Z" level=info msg="Using no notifications"
time="2024-11-21T16:00:03Z" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-11-21T16:00:03Z" level=info msg="Scheduling first run: 2024-11-22 16:00:03 +0000 UTC"
time="2024-11-21T16:00:03Z" level=info msg="Note that the first check will be performed in 23 hours, 59 minutes, 59 seconds"


### Additional context

_No response_
github-actions[bot] commented 1 day ago

Hi there! šŸ‘‹šŸ¼ As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! šŸ™