I'm working on gitlab CI at my project, and I created image to make my tests and builds. When I ran it in docker executor every job needs to download images from beggining. Is there any way to cachee/store that layers at host? like cache? I tried store /var/lib/docker/aufs but I guest its not everythink. Can't find any solution anywhere. Anyone has that problem before? How to work with it?
gitlab-ci.yml
phpunit:
stage: test
script:
- docker run -w /var/www -v $(pwd):/var/custom --rm phpunit/phpunit:4.8.5
gitlab-ci.yml with volumes from
phpunit:
stage: test
script:
- docker run -w /var/www -v $(pwd):/var/custom --rm --volumes-from {image_from other build} phpunit/phpunit:4.8.5