Cache issue - old tag not removed

Hi,

We had deleted a repository gocd/gocd-server 3 months ago. This repository had an image with the latest tag. We deleted this dockerhub repo, made it a automated build, deleted the automated build in favour of having a dockerhub repository itself with the same name - gocd-server. We have been pushing new images for 3 months now with one difference. Earlier we used to have an image with the latest tag in the repository. Now, we don’t. However, doing docker pull gocd/gocd-server:latest does NOT give a error message ‘latest tag not found’, but pulls an old image that we had tagged as latest 3 months ago. The UI and API do not list latest as a tag, but it can still be pulled.

Fixed it by pushing a new image tagged as latest and deleted the latest tag from the repository on dockerhub.