i want to share builds with other people in my team. Therefore i set up a docker registry that stores the build images. Sadly when other people are pulling the image the cache seems not to be used.
Since our builds take ~3h on a fast workstation (CUDA, OpenCV, Tensorflow, …) caching is very usefull.
How to reproduce the behaviour
- push a build image to you registry
docker tag myapp_main registry.yourdomain.com/bla
docker push registry.yourdomain.com/bla:latest
- prune all local images
docker system prune --all
- pull image
docker pull registry.yourdomain.com/bla:latest
docker tag registry.yourdomain.com/bla:latest myapp_main:latest
- do a new build without changing the dockerfile or its resources
-> Cache is not used
Do you have any idea on how to tag the images, in order to get chaching to work?