Using cache in GitLab CI with Docker-in-Docker | $AYMDEV()
aymdev.io › en › blogOct 02, 2020 · # The --cache-from option. Since Docker 1.13 we can use the --cache-from option with the build command to specify which image to use cache from: docker build --cache-from image:old -t image:new -f ./Dockerfile . We just need to login to our GitLab project registry and to use our build on the most recent image: