Docker hub authentication with environment variables #389
Closed
lordraiden
started this conversation in
General
Replies: 2 comments
-
|
Yes, as noted in Watchtower's Usage Overview, Watchtower takes the Definitely take note of the information regarding 2FA, if applicable. The Private Registry documentation also provides valuable information on the topic. Here's an example using your provided config: version: "3.4"
services:
watchtower:
container_name: ${watchtower_name}
image: nickfedor/watchtower
networks:
eth4.25:
ipv4_address: ${watchtower_ip}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_REVIVE_STOPPED=false
- WATCHTOWER_TIMEOUT=60s
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_LIFECYCLE_HOOKS=true
- WATCHTOWER_NOTIFICATIONS=shoutrrr
- WATCHTOWER_NOTIFICATION_URL
- WATCHTOWER_LOG_LEVEL=info
- WATCHTOWER_SCHEDULE=0 0 1 * * *
- REPO_USER=${DOCKERHUB_USERNAME}
- REPO_PASS=${DOCKERHUB_PASSWORD}
secrets:
- WATCHTOWER_NOTIFICATION_URL |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Closing this discussion as it's old and inactive. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is possible to configure docker hub auth credentials via environmental variables?
Beta Was this translation helpful? Give feedback.
All reactions