I've set up a docker registry on a remote system. I've pushed some images to it. I've made changes to these images and want to update these images so when I pull them I get the most recent version. How can I guarantee I always get the newest version?
I tried to tag my image with :latest, but that doesn't seem to do anything. I also ensured the image gets built anew with the --no-cache flag.
This is what I do at the moment:
I build an image via
docker image build --tag karaf .
I tag that image with
docker image tag karaf outserver.at:5000/karaf
I push that image with
docker push outserver.at:5000/karaf
I pull the image on some destination system via
docker pull outserver.at:5000/karaf
I start my docker-compose file which has these images as services via
docker-compose up
I would expect the push command to just overwrite the existing image on the registry with the newer image. Logically, if I pull that image on the destination system, I would expect the image to be updated. But actually, the image I get is outdated.