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

Add support for the registry-mirror docker option #1346

Open
kasimon opened this issue Aug 18, 2022 · 8 comments
Open

Add support for the registry-mirror docker option #1346

kasimon opened this issue Aug 18, 2022 · 8 comments

Comments

@kasimon
Copy link

kasimon commented Aug 18, 2022

Is your feature request related to a problem? Please describe.
Our docker daemons run with the registry-mirror=<internal-docker-proxy> setting set, as our systems cannot access the internet directly. We have configured sonatype nexus as a pass through cache for this. But we have not been able to enable this option for watchtower, resulting in watchtower trying to connect directly to external registries and failing.

Describe the solution you'd like
Support the registry-mirror setting in config.json (we have mounted /etc/docker/daemon.json to /config.json)
or provide an option WATCHTOWER_DOCKER_REGISTRY_MIRROR=... to watchtower.

@github-actions
Copy link

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! 🙏

@brechsteiner
Copy link

+1

1 similar comment
@1983shake
Copy link

+1

@Kagee
Copy link

Kagee commented Jul 24, 2024

Does watchtower pull the images on it's own, not through docker? We also require this option, and it is configured and works just fine when using the docker cli directly on host we run watchtower on, but when the watchtower container tries to update it claims

time="2024-07-24T14:26:43Z" level=warning msg="Could not do a head request for \"containrrr/watchtower:latest\", falling back to regular pull." container=/watchtower image="containrrr/watchtower:latest"
time="2024-07-24T14:26:43Z" level=warning msg="Reason: Get \"https://index.docker.io/v2/\": dial tcp: lookup index.docker.io: i/o timeout" container=/watchtower image="containrrr/watchtower:latest"
t

even tough i can see in the docker mirror logs that a HEAD request was issued and a response was sent?

@kasimon
Copy link
Author

kasimon commented Jul 26, 2024

AFAIK watchtower doesn't pull images, but checks the registry for new images directly over the registry api.

@uwang
Copy link

uwang commented Sep 25, 2024

+1

1 similar comment
@DavidZhang73
Copy link

+1

@idealclover
Copy link

Any updates?

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

No branches or pull requests

7 participants