Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to update with Docker Compose and WatchTower? #313

Closed
2600box opened this issue Jan 21, 2023 · 5 comments
Closed

Correct way to update with Docker Compose and WatchTower? #313

2600box opened this issue Jan 21, 2023 · 5 comments

Comments

@2600box
Copy link

2600box commented Jan 21, 2023

Hello, is there a special way to update monica with docker compose?

Normally I use WatchTower to do this automatically. However for tubesync I get the following error:

watchtower-watchtower-1  | time="2023-01-21T04:00:06+01:00" level=warning msg="Could not do a head request for \"ghcr.io/meeb/tubesync:latest\", falling back to regular pull." container=/tubesync image="ghcr.io/meeb/tubesync:latest"
watchtower-watchtower-1  | time="2023-01-21T04:00:06+01:00" level=warning msg="Reason: registry responded to head request with \"404 Not Found\", auth: \"not present\"" container=/tubesync image="ghcr.io/meeb/tubesync:latest"

If I try manually with docker compose pull it seems to work normally

~/tubesync$ docker compose pull
[+] Running 1/1
 ⠿ tubesync Pulled

Any idea how to make it play nice with WatchTower?

Thanks!

$ cat docker-compose.yml
services:
  tubesync:
    image: ghcr.io/meeb/tubesync:latest
    container_name: tubesync
    restart: unless-stopped
    ports:
      - 4848:4848
    volumes:
      - /home/docker_user/tubesync/tubesync-config:/config
      - /kohmics/tubesync-downloads:/downloads
    environment:
      - TZ=Europe/Paris
      - PUID=1002
      - PGID=1002
@meeb
Copy link
Owner

meeb commented Jan 21, 2023

I use docker compose myself with no issues and ghcr.io/meeb/tubesync:latest is the correct image. I've had ghcr.io throw some weird temporary errors so perhaps it's just a temporary problem? There's no sensible reason I can think of why a docker pull ghcr.io/meeb/tubesync:latest would result in a 404. I've never used watchtower so I can't comment there. The only guess I would have is watchtower may be providing credentials to ghcr.io (if you supply any credentials public images will 403 or 404) or that ghcr.io is blocking watchtower as a client. Check to see if you have any saved credentials for ghcr.io in watchtower first though.

@meeb
Copy link
Owner

meeb commented Jan 21, 2023

From a quick search of "ghcr.io and watchtower" there are a number of similar reports to yours with various images on Reddit and other forums. Perhaps watchtower and ghcr.io just don't play nicely? Either way, I don't think this is anything tubesync related. If this does turn out to be a weird issue with ghcr.io I'll put mirroring the image on some other registry on the list for when I get time.

@2600box
Copy link
Author

2600box commented Jan 22, 2023

Thanks for looking into it.

I have many other ghcr.io images that update through watchtower without issue.

I noted one observation from googling on this that there is perhaps something to do with pinning to hashes? But I could not figure out how to investigate that on ghcr.io

@2600box
Copy link
Author

2600box commented Jan 22, 2023

Just saw that this was fixed here: containrrr/watchtower#1528

@2600box 2600box closed this as completed Jan 22, 2023
@meeb
Copy link
Owner

meeb commented Jan 22, 2023

Excellent, glad you solved it. Thanks for the reference link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants