You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I've been struggling to get mine working. I'm trying out a simple setup with only a Dockerfile. Happy if you could help me out. Here are the steps I followed:
Generate Personal Access Token (Settings > Developer Settings > Personal Access Token)
Scope: read, write and delete packages (ref: Using Watchtower with github packages #569)
Solution: Run Watchtower command should reference the container name $ docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/config.json:/config.json containrrr/watchtower --interval 30 <container_name>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I've been struggling to get mine working. I'm trying out a simple setup with only a Dockerfile. Happy if you could help me out. Here are the steps I followed:
Generate Personal Access Token (Settings > Developer Settings > Personal Access Token)
Scope: read, write and delete packages (ref: Using Watchtower with github packages #569)
Generate Base64
$ echo "<github-username>:<personal-access-token>" | base64
Setup Config file
$ echo '{"auths": {"ghcr.io": {"auth": "<base64_output>"}}}' > config.json
Login to GH Packages
$ echo "<personal-access-token>" | docker login ghcr.io -u <gh-username> --password-stdin
Run Container
$ docker run -d -p 8081:80 --name <container_name> ghcr.io/<gh-username>/<repo>:<tag>
Run Watchtower
$ docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/config.json:/config.json containrrr/watchtower --interval 30 ghcr.io/<gh-username>/<repo>:<tag>
I get no errors at any point. But, when I run
docker logs watchtower
here's what I getSolution: Run Watchtower command should reference the container name
$ docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/config.json:/config.json containrrr/watchtower --interval 30 <container_name>
Beta Was this translation helpful? Give feedback.
All reactions