Page MenuHomePhabricator

docker-registry.wikimedia.org caches images missing instead of revalidating
Closed, ResolvedPublic

Description

I sometime forget to build and publish an image. The Jenkins job thus fail with:

docker: Error response from daemon: manifest for docker-registry.wikimedia.org/releng/commit-message-validator:0.6.0 not found.

After building and publishing it, the image can still not be found for a few minutes. Even when requested from a different host. Thus it seems to me the Wikimedia Docker registry caches images miss. I can't tell whether it is due to the Nginx cache or the registry itself.

Event Timeline

Change 481093 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/puppet@production] docker::registry: Add Cache-Control header

https://gerrit.wikimedia.org/r/481093

Change 481093 merged by Alexandros Kosiaris:
[operations/puppet@production] docker::registry: Add Cache-Control header to avoid caching

https://gerrit.wikimedia.org/r/481093

akosiaris claimed this task.

With the merge of the above, this is probably resolved for now. Note that newly pushed images right before this was live may take up to 1 day to show up. I 'll resolve, but feel free to reopen