Pull-through container registry - remote delay

Hi Guys

Problem:
When using pull-through registry to docker.io, there seems to be a delay in when pulp “notices” a remote repository has been updated.

In my case i build a new container image, i push that to docker hub. Then locally i try to pull that image, the image i get is the older version

After a few minutes i do a docker pull again and it gets the right image. BTW this image has the same tags (:latest) … so don’t know if that helps.

Expected outcome:
Each and every request to the pull-though registry should a new fetch from the remote.

Is there some setting, or “lifetime” of the cache i can set? i didnt seem to see anything obvious looking at the API

Do you have the redis cache enabled? In the pulp status output you should see redis_connection. If it is true then that means the responses will be cached for 10 mins. You can change the defaults with these settings: Settings - Pulp Project

2 Likes